Don't collapse segregated intersections at roundabout exits, #5114

This commit is contained in:
Michael Krasnyk 2018-06-21 14:02:06 +02:00 committed by Patrick Niklaus
parent fdbcefe358
commit 991cdf7958
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
# 5.18.1
- Changes from 5.18.0:
- Bugfixes:
- FIXED: collapsing of ExitRoundabout instructions [#5114](https://github.com/Project-OSRM/osrm-backend/issues/5114)
# 5.18.0 # 5.18.0
- Changes from 5.17.0: - Changes from 5.17.0:
- Features: - Features:

View File

@ -621,6 +621,7 @@ RouteSteps collapseSegregatedTurnInstructions(RouteSteps steps)
// else if the current step is segregated and the next step is not segregated // else if the current step is segregated and the next step is not segregated
// and the next step is not a roundabout then combine with turn adjustment // and the next step is not a roundabout then combine with turn adjustment
else if (curr_step->is_segregated && !next_step->is_segregated && else if (curr_step->is_segregated && !next_step->is_segregated &&
!hasRoundaboutType(curr_step->maneuver.instruction) &&
!hasRoundaboutType(next_step->maneuver.instruction)) !hasRoundaboutType(next_step->maneuver.instruction))
{ {
// Determine if u-turn // Determine if u-turn