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

Method CalculateRoute

libs/routing/routing_tests/routing_algorithm.cpp:185–195  ·  view source on GitHub ↗

AStar-bidirectional routing algorithm implementation

Source from the content-addressed store, hash-verified

183
184// *************************** AStar-bidirectional routing algorithm implementation ***********************
185TestAStarBidirectionalAlgo::Result TestAStarBidirectionalAlgo::CalculateRoute(
186 RoadGraphIFace const & graph, geometry::PointWithAltitude const & startPos,
187 geometry::PointWithAltitude const & finalPos, RoutingResult<IRoadGraph::Vertex, IRoadGraph::Weight> & path)
188{
189 RoadGraph roadGraph(graph);
190 base::Cancellable cancellable;
191 Algorithm::Params<> params(roadGraph, startPos, finalPos, cancellable);
192
193 Algorithm::Result const res = Algorithm().FindPathBidirectional(params, path);
194 return Convert(res);
195}
196} // namespace routing_test

Callers 2

TestAStarRouterMockFunction · 0.45
UNIT_TESTFunction · 0.45

Calls 2

FindPathBidirectionalMethod · 0.80
ConvertFunction · 0.70

Tested by 2

TestAStarRouterMockFunction · 0.36
UNIT_TESTFunction · 0.36