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

Method CalculateRoute

libs/routing/routing_tests/async_router_test.cpp:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 string GetName() const override { return "Dummy"; }
38 void SetGuides(GuidesTracks && /* guides */) override {}
39 RouterResultCode CalculateRoute(Checkpoints const & checkpoints, m2::PointD const & startDirection,
40 bool adjustToPrevRoute, RouterDelegate const & delegate, Route & route) override
41 {
42 route = Route("dummy", checkpoints.GetPoints().cbegin(), checkpoints.GetPoints().cend(), 0 /* route id */);
43
44 for (auto const & absent : m_absent)
45 route.AddAbsentCountry(absent);
46
47 return m_result;
48 }
49
50 bool FindClosestProjectionToRoad(m2::PointD const & point, m2::PointD const & direction, double radius,
51 EdgeProj & proj) override

Callers

nothing calls this directly

Calls 4

AddAbsentCountryMethod · 0.80
RouteClass · 0.50
cbeginMethod · 0.45
cendMethod · 0.45

Tested by

no test coverage detected