only consider allowed entries when continuing on motorways

This commit is contained in:
Moritz Kobitzsch 2017-07-12 10:45:50 +02:00 committed by Patrick Niklaus
parent 54530a14e9
commit 30b8225812
2 changed files with 6 additions and 3 deletions

View File

@ -278,6 +278,6 @@ Feature: Motorway Guidance
| cd | | US 50; I 66 | motorway | yes |
When I route I should get
| waypoints | route | turns |
| a,d | , | depart,turn slight left,arrive |
| b,d | , | depart,arrive |
| waypoints | route | turns |
| a,d | , | depart,arrive |
| b,d | , | depart,arrive |

View File

@ -118,6 +118,9 @@ Intersection MotorwayHandler::fromMotorway(const EdgeID via_eid, Intersection in
const auto getContinueAngle = [this, in_data](const Intersection &intersection) {
for (const auto &road : intersection)
{
if (!road.entry_allowed)
continue;
const auto &out_data = node_based_graph.GetEdgeData(road.eid);
const auto same_name = !util::guidance::requiresNameAnnounced(