| 296 | } |
| 297 | |
| 298 | optional<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 | |
| 309 | bool Route::GetNextTurn(double & distanceToTurnMeters, TurnItem & nextTurn) const |
| 310 | { |
no test coverage detected