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

Method GetCurrentTimeToNearestTurnSec

libs/routing/route.cpp:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108double Route::GetCurrentTimeToNearestTurnSec() const
109{
110 double distance;
111 TurnItem turn;
112 GetNearestTurn(distance, turn);
113
114 // |turn.m_index| - 1 is the index of |turn| segment.
115 CHECK_LESS_OR_EQUAL(turn.m_index, m_routeSegments.size(), ());
116 CHECK_GREATER(turn.m_index, 0, ());
117
118 return GetCurrentTimeToSegmentSec(turn.m_index - 1);
119}
120
121// | curSegLenMeters |
122// | |

Callers 2

GetRouteFollowingInfoMethod · 0.80
UNIT_TESTFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.64