| 287 | } |
| 288 | |
| 289 | void Route::GetNearestTurn(double & distanceToTurnMeters, TurnItem & turn) const |
| 290 | { |
| 291 | // Note. |m_poly.GetCurrentIter().m_ind| is a point index of last passed point at |m_poly|. |
| 292 | GetClosestTurnAfterIdx(m_poly.GetCurrentIter().m_ind, turn); |
| 293 | CHECK_LESS(m_poly.GetCurrentIter().m_ind, turn.m_index, ()); |
| 294 | |
| 295 | distanceToTurnMeters = m_poly.GetDistanceM(m_poly.GetCurrentIter(), m_poly.GetIterToIndex(turn.m_index)); |
| 296 | } |
| 297 | |
| 298 | optional<turns::TurnItem> Route::GetCurrentIteratorTurn() const |
| 299 | { |