-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 via-way restrictions for multiple vias #4439
Comments
@danpat ✋ I'm really waiting for that moment when this feature would be implemented. /cc @daniel-j-h |
@Andygol This ticket is open, but we have no plans to work on it for a while. Quick question about the modelling at this location. The highlighted node: has two |
Yeah, I know this approach. If we remove this node in order to disconnect the lines, this place will appear in one of the way-crossing validators and the point will be added again - this is not a solution to the problem. The main goal is to encourage mappers to follow up our mapping guides and establish them as the best practices among OSM community. But without supporting multi-vias turn restriction it is hard to push this approach for mapping activities. This is suggested mapping of SPI-junctions 👇 |
This issue seems to be a lot more urgent now as "multiple via way" restrictions are about to become quite common as the updated turn restriction editor in iD creates them by default. Here is a restriction that the updated turn restriction editor in iD created 2 days ago simply by clicking the appropriate "NO U-Turn" symbol in the editor: And here is OSRM ignoring it: Any chance to support these in OSRM soon? |
I am experiencing the same issue mentioned by @eFrysTon too!. Any updates? |
For what it’s worth, there appear to be just over a thousand turn restriction relations containing multiple |
Well, may main point was that the graphic turn restriction editor in iD is now creating them with a single click without it even being noticeable that it's a multi-way via restriction or any indication that support for these is still lackluster in available routing engines. Which means they are likely to proliferate in the future. |
@eFrysTon the holdup here is that the implementation is not trivial, and is relatively low priority when there aren't that many of these things out there yet. The way OSRM models the road network as a graph makes it easy to support via-node restrictions (we simply delete an edge and the turn is no longer possible). For via-single-way restrictions, some "tricks" have been implemented, but can't be extended to support the multiple via way restrictions. Supporting multi-via-way restrictions very likely requires some quite complicated graph transformation/expansion around intersections with multi-via-way restrictions. As always, pull requests implementing the feature from the community are very welcome :-) |
Hi, I have a maybe silly question: is there any via-way(s) restriction in real-world road network? (I don't have a driving license yet :( ) I mean it seems most of via-ways restriction in OSM is a side product caused by a single physical intersection being divided into multiple OSM nodes. For example, a classic # shape road, to disable a u-turn then a via-ways restriction is needed. But if we can treat these 4 nodes as a "big intersection node", then a simple "via-big-node" restriction should be sufficient. But of course, if there really has some kind of via-way(s) restriction in real-life then this "big intersection" approach will be insufficient. |
I have modelled this forbidden route as a restriction of multiple via ways: https://www.openstreetmap.org/relation/7139227#map=17/22.27908/114.18234 None of the OSM routers obey this restriction, but most commercial providers (with Google the most notable exception, where a lot of drivers followed and get caught by police) can avoid it correctly. Is there any better method for that? |
Over in #2681, support was added for turn restricitons in OSM that use a
way
as thevia
.In theory, it's possible to have multiple
via
s for a turn, although in practice they're pretty rare, most restructions are expressed with a single viaway
ornode
.For completeness, we should support multiple vias for turn restrictions.
The text was updated successfully, but these errors were encountered: