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

Method GetCurrentIteratorTurn

libs/routing/route.cpp:298–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298optional<turns::TurnItem> Route::GetCurrentIteratorTurn() const
299{
300 if (!IsValid())
301 return nullopt;
302
303 auto const & iter = m_poly.GetCurrentIter();
304
305 CHECK_LESS(iter.m_ind, m_routeSegments.size(), ());
306 return m_routeSegments[iter.m_ind].GetTurn();
307}
308
309bool Route::GetNextTurn(double & distanceToTurnMeters, TurnItem & nextTurn) const
310{

Callers 1

Calls 3

GetCurrentIterMethod · 0.80
IsValidFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected