diff --git a/features/guidance/dedicated-turn-roads.feature b/features/guidance/dedicated-turn-roads.feature index dbede0e69..34fc73925 100644 --- a/features/guidance/dedicated-turn-roads.feature +++ b/features/guidance/dedicated-turn-roads.feature @@ -992,7 +992,6 @@ Feature: Slipways and Dedicated Turn Lanes | dbef | primary | dbef | | | ae | primary_link | ae | yes | - When I route I should get | waypoints | route | turns | locations | | s,f | sabc,dbef,dbef | depart,turn right,arrive | s,a,f | @@ -1019,7 +1018,6 @@ Feature: Slipways and Dedicated Turn Lanes | dbcf | primary | dbcf | | | ac | primary_link | ae | yes | - When I route I should get | waypoints | route | turns | locations | | s,f | sab,dbcf,dbcf | depart,turn right,arrive | s,a,f | @@ -1047,7 +1045,31 @@ Feature: Slipways and Dedicated Turn Lanes | ae | primary_link | sab | yes | | cg | primary | cg | | - When I route I should get | waypoints | route | turns | locations | | s,f | sab,dbcef,dbcef | depart,turn right,arrive | s,a,f | + + + @sliproads + Scenario: Sliproad converted from a fork + Given the node map + """ + d + . + b + s . a '. + `c + . + f + """ + + And the ways + | nodes | highway | name | ref | oneway | + | sa | tertiary | | D 60A | yes | + | ab | tertiary | ab | D 60A | yes | + | ac | tertiary | | D 60A | yes | + | dbcf | tertiary | dbcf | D 543 | yes | + + When I route I should get + | waypoints | route | turns | locations | + | s,f | ,dbcf,dbcf | depart,turn right,arrive | s,a,f | diff --git a/src/extractor/guidance/sliproad_handler.cpp b/src/extractor/guidance/sliproad_handler.cpp index 96fa4cfde..71b69dea5 100644 --- a/src/extractor/guidance/sliproad_handler.cpp +++ b/src/extractor/guidance/sliproad_handler.cpp @@ -582,7 +582,6 @@ operator()(const NodeID /*nid*/, const EdgeID source_edge_id, Intersection inter } else if (!name_table.GetNameForID(main_annotation.name_id).empty()) { - OSRM_ASSERT(false, coordinates[intersection_node_id]); intersection[*obvious].instruction.type = TurnType::NewName; intersection[*obvious].instruction.direction_modifier = getTurnDirection(intersection[*obvious].angle);