diff options
| author | Rutger Broekhoff | 2026-08-28 22:17:10 +0200 |
|---|---|---|
| committer | Rutger Broekhoff | 2026-08-28 22:17:10 +0200 |
| commit | 70643a9e4821bd11c3f363f1708fe420965467d1 (patch) | |
| tree | 65572b58e247248846628940a2aaca197a15d784 /server/src/api.cppm | |
| parent | 173cd34bdd0717d3f4beeac76b3296ecd46ada0d (diff) | |
| download | routemon-70643a9e4821bd11c3f363f1708fe420965467d1.tar.gz routemon-70643a9e4821bd11c3f363f1708fe420965467d1.zip | |
Format again
Diffstat (limited to 'server/src/api.cppm')
| -rw-r--r-- | server/src/api.cppm | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/server/src/api.cppm b/server/src/api.cppm index 66e8f45..c724a45 100644 --- a/server/src/api.cppm +++ b/server/src/api.cppm | |||
| @@ -58,30 +58,28 @@ struct sysinfo | |||
| 58 | }; | 58 | }; |
| 59 | 59 | ||
| 60 | auto tag_invoke( | 60 | auto tag_invoke( |
| 61 | json::value_from_tag, json::value& jv, relevant_road_closure const& clo) | 61 | json::value_from_tag, json::value& jv, relevant_road_closure const& clo) |
| 62 | -> void; | 62 | -> void; |
| 63 | auto tag_invoke( | 63 | auto tag_invoke( |
| 64 | json::value_from_tag, json::value& jv, relevant_situation const& sit) | 64 | json::value_from_tag, json::value& jv, relevant_situation const& sit) -> void; |
| 65 | -> void; | ||
| 66 | auto tag_invoke(json::value_from_tag, json::value& jv, track_segment const& seg) | 65 | auto tag_invoke(json::value_from_tag, json::value& jv, track_segment const& seg) |
| 67 | -> void; | 66 | -> void; |
| 68 | auto tag_invoke(json::value_from_tag, json::value& jv, track const& track) | 67 | auto tag_invoke(json::value_from_tag, json::value& jv, track const& track) |
| 69 | -> void; | 68 | -> void; |
| 70 | auto tag_invoke( | 69 | auto tag_invoke( |
| 71 | json::value_from_tag, json::value& jv, process_gpx_result const& res) | 70 | json::value_from_tag, json::value& jv, process_gpx_result const& res) -> void; |
| 72 | -> void; | ||
| 73 | auto tag_invoke(json::value_from_tag, json::value& jv, sysinfo const& info) | 71 | auto tag_invoke(json::value_from_tag, json::value& jv, sysinfo const& info) |
| 74 | -> void; | 72 | -> void; |
| 75 | 73 | ||
| 76 | class handler | 74 | class handler |
| 77 | { | 75 | { |
| 78 | using lse_index_value = std::tuple< | 76 | using lse_index_value = std::tuple< |
| 79 | geo::box, std::shared_ptr<geo::linestring>, | 77 | geo::box, std::shared_ptr<geo::linestring>, |
| 80 | std::shared_ptr<datex2::road_closure>>; | 78 | std::shared_ptr<datex2::road_closure>>; |
| 81 | using p_index_value = | 79 | using p_index_value = |
| 82 | std::pair<geo::point, std::shared_ptr<datex2::road_closure>>; | 80 | std::pair<geo::point, std::shared_ptr<datex2::road_closure>>; |
| 83 | using lse_index = | 81 | using lse_index = |
| 84 | bgeo::index::rtree<lse_index_value, bgeo::index::quadratic<16>>; | 82 | bgeo::index::rtree<lse_index_value, bgeo::index::quadratic<16>>; |
| 85 | using p_index = bgeo::index::rtree<p_index_value, bgeo::index::quadratic<16>>; | 83 | using p_index = bgeo::index::rtree<p_index_value, bgeo::index::quadratic<16>>; |
| 86 | 84 | ||
| 87 | log::logger l_; | 85 | log::logger l_; |