| 76 | } |
| 77 | |
| 78 | void 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 | |
| 93 | void RoutingSession::RebuildRoute(m2::PointD const & startPoint, ReadyCallback const & readyCallback, |
| 94 | NeedMoreMapsCallback const & needMoreMapsCallback, |
nothing calls this directly
no test coverage detected