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

Method TestCarRouter

libs/routing/routing_benchmarks/car_routing_tests.cpp:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 CarTest() : RoutingTest(routing::IRoadGraph::Mode::ObeyOnewayTag, routing::VehicleType::Car, kCarMapFiles) {}
25
26 void TestCarRouter(ms::LatLon const & start, ms::LatLon const & final, size_t reiterations)
27 {
28 routing::Route routeFoundByAstarBidirectional("", 0 /* route id */);
29 auto router = CreateRouter("test-astar-bidirectional");
30
31 m2::PointD const startMerc = mercator::FromLatLon(start);
32 m2::PointD const finalMerc = mercator::FromLatLon(final);
33 for (size_t i = 0; i < reiterations; ++i)
34 TestRouter(*router, startMerc, finalMerc, routeFoundByAstarBidirectional);
35 }
36
37protected:
38 std::unique_ptr<routing::VehicleModelFactoryInterface> CreateModelFactory() override

Callers

nothing calls this directly

Calls 2

TestRouterFunction · 0.85
FromLatLonFunction · 0.50

Tested by

no test coverage detected