AStar-bidirectional routing algorithm implementation
| 183 | |
| 184 | // *************************** AStar-bidirectional routing algorithm implementation *********************** |
| 185 | TestAStarBidirectionalAlgo::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 |