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

Method CalculateRoute

libs/routing/async_router.cpp:161–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void AsyncRouter::CalculateRoute(Checkpoints const & checkpoints, m2::PointD const & direction, bool adjustToPrevRoute,
162 ReadyCallbackOwnership const & readyCallback,
163 NeedMoreMapsCallback const & needMoreMapsCallback,
164 RemoveRouteCallback const & removeRouteCallback,
165 ProgressCallback const & progressCallback, uint32_t timeoutSec)
166{
167 unique_lock ul(m_guard);
168
169 m_checkpoints = checkpoints;
170 m_startDirection = direction;
171 m_adjustToPrevRoute = adjustToPrevRoute;
172
173 ResetDelegate();
174
175 m_delegateProxy = std::make_shared<RouterDelegateProxy>(readyCallback, needMoreMapsCallback, removeRouteCallback,
176 m_pointCheckCallback, progressCallback, timeoutSec);
177
178 m_hasRequest = true;
179 m_threadCondVar.notify_one();
180}
181
182void AsyncRouter::SetGuidesTracks(GuidesTracks && guides)
183{

Callers 1

RebuildRouteMethod · 0.45

Calls 15

GenerateAbsentRegionsMethod · 0.80
ElapsedSecondsMethod · 0.80
GetTotalTimeSecMethod · 0.80
RunTaskMethod · 0.80
OnReadyMethod · 0.80
GetAbsentRegionsMethod · 0.80
GetNameMethod · 0.45
SetGuidesMethod · 0.45
clearMethod · 0.45
insertMethod · 0.45
cbeginMethod · 0.45

Tested by

no test coverage detected