| 25 | } |
| 26 | |
| 27 | void RoutingEngineResult::GetPossibleTurns(SegmentRange const & segmentRange, m2::PointD const & junctionPoint, |
| 28 | size_t & ingoingCount, turns::TurnCandidates & outgoingTurns) const |
| 29 | { |
| 30 | CHECK(!segmentRange.IsEmpty(), |
| 31 | ("SegmentRange presents a fake feature.", "junctionPoint:", mercator::ToLatLon(junctionPoint))); |
| 32 | |
| 33 | ingoingCount = 0; |
| 34 | outgoingTurns.candidates.clear(); |
| 35 | |
| 36 | auto const adjacentEdges = m_adjacentEdges.find(segmentRange); |
| 37 | if (adjacentEdges == m_adjacentEdges.cend()) |
| 38 | { |
| 39 | ASSERT(false, (segmentRange)); |
| 40 | return; |
| 41 | } |
| 42 | |
| 43 | ingoingCount = adjacentEdges->second.m_ingoingTurnsCount; |
| 44 | outgoingTurns = adjacentEdges->second.m_outgoingTurns; |
| 45 | } |
| 46 | |
| 47 | geometry::PointWithAltitude RoutingEngineResult::GetStartPoint() const |
| 48 | { |
no test coverage detected