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

Method GetDistanceToNextTurn

libs/routing/routing_session.cpp:379–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379double RoutingSession::GetDistanceToNextTurn() const
380{
381 if (!m_route->IsValid())
382 return -1;
383
384 double distanceToTurnMeters = 0.;
385 turns::TurnItem turn;
386 m_route->GetNearestTurn(distanceToTurnMeters, turn);
387 return distanceToTurnMeters;
388}
389
390double RoutingSession::GetCurrentSpeedLimit() const
391{

Callers 3

SetDrapeEngineMethod · 0.80
AcceptMessageMethod · 0.80

Calls 2

GetNearestTurnMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected