From 48a3e5d4b06fb995f099b9d847aeb489c3b400c4 Mon Sep 17 00:00:00 2001 From: mvglasow Date: Tue, 18 Nov 2025 00:00:30 +0200 Subject: [PATCH] [routing] Documentation Signed-off-by: mvglasow --- libs/routing/features_road_graph.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libs/routing/features_road_graph.hpp b/libs/routing/features_road_graph.hpp index fed223351..9a323ab3b 100644 --- a/libs/routing/features_road_graph.hpp +++ b/libs/routing/features_road_graph.hpp @@ -84,9 +84,21 @@ public: /// @name IRoadGraph overrides /// @{ void ForEachFeatureClosestToCross(m2::PointD const & cross, ICrossEdgesLoader & edgesLoader) const override; + + /** + * @brief Finds the closest edges to a reference point within a given distance. + * + * @param rect A rectangle. Its center is the reference point; the search distance is expressed + * through the height and width. + * @param count The number of results to return. + * @param vicinities Receives the results. + * @param snapToEnds If true, the projection point (the point on the edge closest to the reference + * point) is constrained to one of the edge endpoints; if false, it can be anywhere on the edge. + */ void FindClosestEdges(m2::RectD const & rect, uint32_t count, std::vector> & vicinities, bool snapToEnds = false) const override; + std::vector FindRoads(m2::RectD const & rect, IsGoodFeatureFn const & isGoodFeature) const override; void GetFeatureTypes(FeatureID const & featureId, feature::TypesHolder & types) const override;