Skip to content

foot instructions gives error for certain cases - #3081

Merged
karussell merged 5 commits into
masterfrom
instructions_problem
Nov 14, 2024
Merged

karussell merged 5 commits into
masterfrom
instructions_problem

Conversation

@karussell

@karussell karussell commented Nov 12, 2024 •

Copy link
Copy Markdown
Member

In #3079 we introduced using just car_access for counting the exits of a roundabout which makes the most sense. But for foot we can leave the roundabout also in opposite direction of car_access or in general if car_access is false and so it could be that exited==true but exitNumber is still 0 leading to the exception "RoundaboutInstruction must contain exitNumber>0" in RoundaboutInstruction.getExitNumber for cases like this:

image

Returning 1 in these cases might look like a workaround, but is likely the best solution. Because using
foot_access || car_access seems tempting, but then we have the problem for cases where two car oneways per exit are counted twice but it should be just one exit even for foot:

image

Note, the last commit adds the PR #3079 again as it was removed in master.

@karussell karussell added the bug label Nov 12, 2024
@karussell karussell changed the title foot instruction cannot be created foot instruction cannot be created for certain cases Nov 12, 2024
@karussell karussell changed the title foot instruction cannot be created for certain cases foot instruction gives error for certain cases Nov 12, 2024
@karussell karussell changed the title foot instruction gives error for certain cases foot instructions gives error for certain cases Nov 12, 2024
karussell added a commit that referenced this pull request Nov 12, 2024
@karussell karussell added this to the 11.0 milestone Nov 12, 2024
@karussell
karussell merged commit a43c8bf into master Nov 14, 2024
@karussell
karussell deleted the instructions_problem branch November 14, 2024 13:38
Nakaner added a commit to geofabrik/OpenRailRouting that referenced this pull request Jan 23, 2026
This is a hacky solution. We should change how instructions are produced
or remove that feature at all because this is caused by
graphhopper/graphhopper#3081

This branch was previously deployed

1 inactive deployment
benchmarks — f2ad6953 Deployed Nov 14, 2024 by karussell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant