| 136 | } |
| 137 | |
| 138 | void 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 | |
| 147 | void TestRouter(routing::IRouter & router, m2::PointD const & startPos, m2::PointD const & finalPos, |
| 148 | routing::Route & route) |
nothing calls this directly
no test coverage detected