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

bus=permit doesnt not override access=no #4045

Merged
merged 4 commits into from
Mar 29, 2023
Merged

Conversation

kevinkreiser
Copy link
Member

@kevinkreiser kevinkreiser commented Mar 29, 2023

fixes #4044

it was noticed that access=no wins over highway=busway. that does not seem to make sense so we probably have to fix up the lua. it is likely this tagging is meant to tell us no one is allow on it... except buses.

EDIT:

as per usual i am thorougly confused after reading the osm wiki. it is clear that overriding access with bus=yes is what is normally used, but its not clear that highway=busway should function the same. the way our interpretation seems to work is we get default access from the highway tag then we turn it off or let it on depending on what the access tag says, then finally we let that access for various modes get overriden by things like bus=yes or bicycle=yes etc.

so im thinking perhaps this particular bridge is a tagging issue. adding bus=yes to it allows the test pass.

EDIT:

lua was missing overrides for bus=permit and taxi=permit on ways. node access was also missing and for motorcycle as well

@harto
Copy link

harto commented Mar 29, 2023

OK, I think that could explain it, since I believe the code change in #3413 was at some point working as intended with various busways around Brisbane.

I noticed that the bridge (and the various other parts of the Brisbane busways) are tagged bus=permit. Are you saying that changing that to bus=yes would likely solve the issue?

I tried searching the web for more information about bus=permit, and found only this: https://wiki.openstreetmap.org/wiki/Tag:access%3Dpermit.

Thanks for your help, and sorry if this is beyond the scope of what should be discussed here vs. elsewhere.

@kevinkreiser
Copy link
Member Author

no this discussion absolutely belongs here.

https://wiki.openstreetmap.org/wiki/Tag:access%3Dpermit

seems like for our purposes permit is equivalent to yes would you agree @gknisely @nilsnolde @dnesbitt61 the wiki basically says it's just there to tell you you can use it but you need to get an easily obtained permit

@kevinkreiser
Copy link
Member Author

if we agree i can add it to the lua and tests

@nilsnolde
Copy link
Member

jep totally agreed

@gknisely
Copy link
Member

@kevinkreiser agree

@kevinkreiser
Copy link
Member Author

ok cool, since we agree ill add it to this pr!

@kevinkreiser
Copy link
Member Author

ah i see we already had permit on many other modes, just forgot bus and taxi

@kevinkreiser kevinkreiser marked this pull request as ready for review March 29, 2023 14:23
@kevinkreiser kevinkreiser changed the title highway=busway doesnt not override access=no bus=permit doesnt not override access=no Mar 29, 2023
@kevinkreiser
Copy link
Member Author

something is wrong with github reporting build statuses here. the windows build succeeded. so did the changelog validation.. im just going to merge rather than try to rebuild

@kevinkreiser kevinkreiser merged commit 9859139 into master Mar 29, 2023
@kevinkreiser kevinkreiser deleted the kk_busnoaccess branch March 29, 2023 15:35
@harto
Copy link

harto commented Mar 29, 2023

Thank you for the quick fix! 🙏

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

Successfully merging this pull request may close these issues.

None yet

4 participants