From 991cdf7958eb8f9757813e68aeac44841fd48e3c Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Thu, 21 Jun 2018 14:02:06 +0200 Subject: [PATCH] Don't collapse segregated intersections at roundabout exits, #5114 --- CHANGELOG.md | 5 +++++ src/engine/guidance/collapse_turns.cpp | 1 + 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ccc420112..131644bfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 - Changes from 5.17.0: - Features: diff --git a/src/engine/guidance/collapse_turns.cpp b/src/engine/guidance/collapse_turns.cpp index 8bf6570d7..d6a40cec0 100644 --- a/src/engine/guidance/collapse_turns.cpp +++ b/src/engine/guidance/collapse_turns.cpp @@ -621,6 +621,7 @@ RouteSteps collapseSegregatedTurnInstructions(RouteSteps steps) // 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 else if (curr_step->is_segregated && !next_step->is_segregated && + !hasRoundaboutType(curr_step->maneuver.instruction) && !hasRoundaboutType(next_step->maneuver.instruction)) { // Determine if u-turn