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

Support for turn:bus:lanes Tag Interpretation #14476

Closed
henrigrossmann opened this issue Mar 6, 2024 · 4 comments
Closed

Support for turn:bus:lanes Tag Interpretation #14476

henrigrossmann opened this issue Mar 6, 2024 · 4 comments

Comments

@henrigrossmann
Copy link

henrigrossmann commented Mar 6, 2024

The top figure in https://wiki.openstreetmap.org/wiki/Key:turn:bus:lanes illustrates how to specify turning restrictions for certain lanes, where only specific lanes are allowed to make certain turns (for instance, in the provided example, only buses are permitted to go straight on the rightmost lane, while cars must turn right on that lane). As far as I'm aware, SUMO does not currently recognize these tags. Is there an easy workaround to implement such restrictions nevertheless?

Thank you for your help.

@m-kro
Copy link
Contributor

m-kro commented Mar 7, 2024

As we do not read this OSM key at the moment, I assume the resulting network does not contain the straight connection for public transport. Then this information is lost. Obviously you could add it with a separate heuristic (discover the concerned junctions e.g. using sumolib, creating PlainXML patch files and running netconvert again) or add it manually in netedit, but I wouldn't classify any as an easy workaround.

It doesn't sound too difficult to implement in the OSM import.

@namdre namdre self-assigned this Mar 7, 2024
@namdre
Copy link
Contributor

namdre commented Mar 7, 2024

there are some complications after all #14477 and #14478.

@henrigrossmann can you provide a location where neither of these issues apply so I can test the basic feature of turn:bus:lanes in isolation?

@namdre
Copy link
Contributor

namdre commented Mar 7, 2024

for the record, here is a first implementation draft that I don't wish to commit without a nice test:
diff.workOn14476.txt

@henrigrossmann
Copy link
Author

henrigrossmann commented Mar 7, 2024

That's a super quick implementation! Highly appreciated, Jakob!

Here's an example of way 1240741141 which has dedicated bus turn lanes. map.osm.zip

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

No branches or pull requests

3 participants