Skip to content

Commit 070fa1a

Browse files
Moritz KobitzschTheMarex
authored andcommitted
only consider allowed entries when continuing on motorways
1 parent f15285e commit 070fa1a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

features/guidance/motorway.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,6 @@ Feature: Motorway Guidance
278278
| cd | | US 50; I 66 | motorway | yes |
279279

280280
When I route I should get
281-
| waypoints | route | turns |
282-
| a,d | , | depart,turn slight left,arrive |
283-
| b,d | , | depart,arrive |
281+
| waypoints | route | turns |
282+
| a,d | , | depart,arrive |
283+
| b,d | , | depart,arrive |

src/extractor/guidance/motorway_handler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ Intersection MotorwayHandler::fromMotorway(const EdgeID via_eid, Intersection in
118118
const auto getContinueAngle = [this, in_data](const Intersection &intersection) {
119119
for (const auto &road : intersection)
120120
{
121+
if (!road.entry_allowed)
122+
continue;
123+
121124
const auto &out_data = node_based_graph.GetEdgeData(road.eid);
122125

123126
const auto same_name = !util::guidance::requiresNameAnnounced(

0 commit comments

Comments
 (0)