| 296 | } |
| 297 | |
| 298 | IRoadGraph::RoadInfo MakeRoadInfoForTesting(bool bidirectional, double speedKMPH, |
| 299 | initializer_list<m2::PointD> const & points) |
| 300 | { |
| 301 | IRoadGraph::RoadInfo ri(bidirectional, speedKMPH, {}); |
| 302 | for (auto const & p : points) |
| 303 | ri.m_junctions.emplace_back(geometry::MakePointWithAltitudeForTesting(p)); |
| 304 | |
| 305 | return ri; |
| 306 | } |
| 307 | |
| 308 | // RoadGraphBase ------------------------------------------------------------------ |
| 309 | void RoadGraphBase::GetRouteEdges(EdgeVector & routeEdges) const |