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

Function MakeRoadInfoForTesting

libs/routing/road_graph.cpp:298–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298IRoadGraph::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 ------------------------------------------------------------------
309void RoadGraphBase::GetRouteEdges(EdgeVector & routeEdges) const

Callers 1

AddRoadFunction · 0.85

Calls 2

emplace_backMethod · 0.45

Tested by 1

AddRoadFunction · 0.68