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

Method GetNextTurns

libs/routing/route.cpp:336–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336bool Route::GetNextTurns(vector<TurnItemDist> & turns) const
337{
338 TurnItemDist currentTurn;
339 GetNearestTurn(currentTurn.m_distMeters, currentTurn.m_turnItem);
340
341 turns.clear();
342 turns.emplace_back(std::move(currentTurn));
343
344 TurnItemDist nextTurn;
345 if (GetNextTurn(nextTurn.m_distMeters, nextTurn.m_turnItem))
346 turns.emplace_back(std::move(nextTurn));
347 return true;
348}
349
350void Route::GetCurrentDirectionPoint(m2::PointD & pt) const
351{

Callers 2

GenerateNotificationsMethod · 0.80
UNIT_TESTFunction · 0.80

Calls 2

clearMethod · 0.45
emplace_backMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.64