osrm-backend: Relation:restriction is invalid
#Hello, Everyone! I have a question. @danpat @mjjbell @daniel-j-h
Through OpenStreetMap wiki, I learned that I could use Relation:restriction to solve some turning problems.
https://wiki.openstreetmap.org/wiki/Relation:restriction
For example,

<relation id="1" changeset="1" timestamp="2022-08-22T06:58:29Z" user="zhou" uid="4437318">
<member type="way" ref="a" role="from"/>
<member type="way" ref="b" role="via"/>
<member type="way" ref="c" role="to"/>
<tag k="restriction" v="no_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
but, the.OSM file that i compiled with this format does not solve the turning problem.
Is it because OSRM doesn’t support it yet?
Historically, this “way-vias” (fromWayId, viaWayId, toWayId) has been tried to handle
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 15 (14 by maintainers)
having done this kind of exercise quite often, I also suspect connectivity problems for the relation. you can check that somewhat with osmium, e.g.
osmium getid --add-referenced <osm_file> <turn_restriction_id>which should output the right ways, i.e. find the ways by id and their node id’s & coordinates. visualizing in josm also helps a lot if you break it down to a small area (josm gets really slow for larger extracts than a few MB).