MCPcopy Create free account
hub / github.com/comaps/comaps / GetNearestEdges

Method GetNearestEdges

libs/routing/routing_benchmarks/helpers.cpp:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void RoutingTest::GetNearestEdges(m2::PointD const & pt,
139 std::vector<std::pair<routing::Edge, geometry::PointWithAltitude>> & edges)
140{
141 routing::MwmDataSource dataSource(m_dataSource, nullptr /* numMwmIDs */);
142 routing::FeaturesRoadGraph graph(dataSource, m_mode, CreateModelFactory());
143 graph.FindClosestEdges(mercator::RectByCenterXYAndSizeInMeters(pt, routing::FeaturesRoadGraph::kClosestEdgesRadiusM),
144 1 /* count */, edges);
145}
146
147void TestRouter(routing::IRouter & router, m2::PointD const & startPos, m2::PointD const & finalPos,
148 routing::Route & route)

Callers

nothing calls this directly

Calls 2

FindClosestEdgesMethod · 0.45

Tested by

no test coverage detected