Repository navigation
foot instructions gives error for certain cases - #3081
Merged
Merged
Conversation
karussell
added a commit
that referenced
this pull request
Nov 12, 2024
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Returning 1 in these cases might look like a workaround, but is likely the best solution. Because using
foot_access || car_accessseems 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:Note, the last commit adds the PR #3079 again as it was removed in master.