diff options
Diffstat (limited to 'server/src/api.cppm')
| -rw-r--r-- | server/src/api.cppm | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/server/src/api.cppm b/server/src/api.cppm index c724a45..66e8f45 100644 --- a/server/src/api.cppm +++ b/server/src/api.cppm | |||
| @@ -58,28 +58,30 @@ 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) -> void; | 64 | json::value_from_tag, json::value& jv, relevant_situation const& sit) |
| 65 | -> void; | ||
| 65 | auto tag_invoke(json::value_from_tag, json::value& jv, track_segment const& seg) | 66 | auto tag_invoke(json::value_from_tag, json::value& jv, track_segment const& seg) |
| 66 | -> void; | 67 | -> void; |
| 67 | auto tag_invoke(json::value_from_tag, json::value& jv, track const& track) | 68 | auto tag_invoke(json::value_from_tag, json::value& jv, track const& track) |
| 68 | -> void; | 69 | -> void; |
| 69 | auto tag_invoke( | 70 | auto tag_invoke( |
| 70 | json::value_from_tag, json::value& jv, process_gpx_result const& res) -> void; | 71 | json::value_from_tag, json::value& jv, process_gpx_result const& res) |
| 72 | -> void; | ||
| 71 | auto tag_invoke(json::value_from_tag, json::value& jv, sysinfo const& info) | 73 | auto tag_invoke(json::value_from_tag, json::value& jv, sysinfo const& info) |
| 72 | -> void; | 74 | -> void; |
| 73 | 75 | ||
| 74 | class handler | 76 | class handler |
| 75 | { | 77 | { |
| 76 | using lse_index_value = std::tuple< | 78 | using lse_index_value = std::tuple< |
| 77 | geo::box, std::shared_ptr<geo::linestring>, | 79 | geo::box, std::shared_ptr<geo::linestring>, |
| 78 | std::shared_ptr<datex2::road_closure>>; | 80 | std::shared_ptr<datex2::road_closure>>; |
| 79 | using p_index_value = | 81 | using p_index_value = |
| 80 | std::pair<geo::point, std::shared_ptr<datex2::road_closure>>; | 82 | std::pair<geo::point, std::shared_ptr<datex2::road_closure>>; |
| 81 | using lse_index = | 83 | using lse_index = |
| 82 | bgeo::index::rtree<lse_index_value, bgeo::index::quadratic<16>>; | 84 | bgeo::index::rtree<lse_index_value, bgeo::index::quadratic<16>>; |
| 83 | using p_index = bgeo::index::rtree<p_index_value, bgeo::index::quadratic<16>>; | 85 | using p_index = bgeo::index::rtree<p_index_value, bgeo::index::quadratic<16>>; |
| 84 | 86 | ||
| 85 | log::logger l_; | 87 | log::logger l_; |