| 72 | uint32_t constexpr kInvalidTransactionId = 0; |
| 73 | |
| 74 | void FillTurnsDistancesForRendering(vector<RouteSegment> const & segments, double baseDistance, vector<double> & turns) |
| 75 | { |
| 76 | using namespace routing::turns; |
| 77 | turns.clear(); |
| 78 | turns.reserve(segments.size()); |
| 79 | for (auto const & s : segments) |
| 80 | { |
| 81 | auto const & t = s.GetTurn(); |
| 82 | CHECK_NOT_EQUAL(t.m_turn, CarDirection::Count, ()); |
| 83 | // We do not render some of the turn directions. |
| 84 | if (t.m_turn == CarDirection::None || t.m_turn == CarDirection::StartAtEndOfStreet || |
| 85 | t.m_turn == CarDirection::StayOnRoundAbout || t.m_turn == CarDirection::ReachedYourDestination) |
| 86 | { |
| 87 | continue; |
| 88 | } |
| 89 | turns.push_back(s.GetDistFromBeginningMerc() - baseDistance); |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | void FillTrafficForRendering(vector<RouteSegment> const & segments, vector<traffic::SpeedGroup> & traffic) |
| 94 | { |
no test coverage detected