From 60ef179d183b03aec64154f390ce2acee63a3416 Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Tue, 5 Dec 2017 16:00:33 +0100 Subject: [PATCH] Remove handling of U-turns on motorways --- src/extractor/guidance/motorway_handler.cpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/extractor/guidance/motorway_handler.cpp b/src/extractor/guidance/motorway_handler.cpp index e4a308921..c231c6e33 100644 --- a/src/extractor/guidance/motorway_handler.cpp +++ b/src/extractor/guidance/motorway_handler.cpp @@ -2,6 +2,7 @@ #include "extractor/guidance/constants.hpp" #include "extractor/guidance/road_classification.hpp" +#include "util/assert.hpp" #include "util/bearing.hpp" #include "util/guidance/name_announcements.hpp" @@ -277,18 +278,11 @@ Intersection MotorwayHandler::fromMotorway(const EdgeID via_eid, Intersection in // handle motorway forks else if (exiting_motorways > 1) { - if (exiting_motorways == 2 && intersection.size() == 2) - { - intersection[1].instruction = - getInstructionForObvious(intersection.size(), - via_eid, - isThroughStreet(1, intersection), - intersection[1]); - // TODO: no coverage by feature test cases - intersection[0].entry_allowed = false; // UTURN on the freeway - } - else if (exiting_motorways == 2) + if (exiting_motorways == 2) { + OSRM_ASSERT(intersection.size() != 2, + node_coordinates[node_based_graph.GetTarget(via_eid)]); + // standard fork std::size_t first_valid = std::numeric_limits::max(), second_valid = std::numeric_limits::max();