Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple from/to members in no_entry/no_exit relations #1040

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

klonfish
Copy link

This fixes osmandapp/OsmAnd#21855 by looping over the list of members and adding multiple RestrictionInfo to the corresponding ways if that is valid for the given restriction type. For relations that only allow one way for each role, it keeps the current behavior of using only the first one.

I tested it in some scenarios and it seems to work correctly.

While I was at it, i also added two small commits to improve the code of the function a little bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant