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

Method BuildRoute

libs/routing/routing_session.cpp:78–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void RoutingSession::BuildRoute(Checkpoints const & checkpoints, uint32_t timeoutSec)
79{
80 CHECK_THREAD_CHECKER(m_threadChecker, ());
81 CHECK(m_router, ());
82 m_checkpoints = checkpoints;
83 m_router->ClearState();
84
85 m_isFollowing = false;
86 m_routingRebuildCount = -1; // -1 for the first rebuild.
87 m_routingRebuildAnnounceCount = 0;
88
89 RebuildRoute(checkpoints.GetStart(), m_buildReadyCallback, m_needMoreMapsCallback, m_removeRouteCallback, timeoutSec,
90 SessionState::RouteBuilding, false /* adjust */);
91}
92
93void RoutingSession::RebuildRoute(m2::PointD const & startPoint, ReadyCallback const & readyCallback,
94 NeedMoreMapsCallback const & needMoreMapsCallback,

Callers

nothing calls this directly

Calls 2

ClearStateMethod · 0.45
GetStartMethod · 0.45

Tested by

no test coverage detected