Relation:restriction
| |
| Description |
| Used for a set of tags and members to represent a turn restriction. |
| Group |
| Restriction |
| Members help |
| Statistics |
This is a proposal for a set of tags and members making a Relation to represent a turn restriction at a junction or other restrictions (you don't have to be turning - you may not be allowed to go straight on - e.g. a bus gate is a kind of junction where the restriction is no passage from one side to the other - except for buses of course).
There may be several turn restrictions at a junction, represented by separate relations.
There is no need to model no turning into the wrong way of a one way street - we take this for granted.
Contents |
Tags
| Key | Value | Explanation |
|---|---|---|
| type | restriction / restriction:hgv / restriction:caravan / restriction:motorcar / restriction:bus / restriction:agricultural / restriction:bicycle / restriction:hazmat | Restriction refers to all vehicles or only to appropriate type of vehicles |
| restriction | no_right_turn / no_left_turn / no_u_turn / no_straight_on / only_right_turn / only_left_turn / only_straight_on / no_entry / no_exit |
If the first word is "no", then no routing is possible from the "from" to the "to" member, and if it is "only_", then you know that the only routing originating from the "from" member leads to the "to" member.
|
| restriction:hgv, restriction:caravan, restriction:motorcar, restriction:bus, restriction:agricultural, restriction:motorcycle, restriction:bicycle, restriction:hazmat | no_right_turn / no_left_turn / no_u_turn / no_straight_on / only_right_turn / only_left_turn / only_straight_on / no_entry / no_exit |
Restriction refers only to appropriate type of vehicle (you can use type=restriction:<type> + restriction= or type=restriction + restriction:<type>=) |
| except | psv / bicycle / hgv / motorcar | The restriction does not apply to these vehicle types (more than one: except=bicycle;psv) |
| day_on | day of week | for example, no right turn in the morning peak on weekdays might be day_on=Monday;day_off=Friday;hour_on=07:30;hour_off=09:30 |
| day_off | day of week | |
| hour_on | time of day | |
| hour_off | time of day |
- If the way does not start or end at the "via"-node, split it!
Members
Road signs
The sign number in the US MUTCD is given in parentheses. There are slight differences of these roadsigns from country to country. Images of turn-signs all around the world can be found on Wikimedia Commons
Obviously, the above table can't be complete, e.g. swedish road signs use a yellow background instead of the white one. However, with the above signs it should be easy to find the corresponding restriction=xy value for most countries.
In Brazil, all signs in this category, whether no_turn or only_turn is a red circular sign with an arrow pointing in the direction. only_turn signs does not have the diagonal bar, while no_turn signs have (similar to 1-3b, but also for 5-7).
Examples
| Map | Tag and Members | Descriptions |
|---|---|---|
|
type=restriction
|
At n from A only turning right to B is allowed. So turning to left is forbidden. |
|
type=restriction
|
Turning left form A to B is not allowed at n. But going straight and right is not forbidden. Each of the other 3 restrictions at this crossing have to be defined separate. |
type=restriction
|
Users coming from way A cannot exit through way C. |
Editors
- Download the turnrestrictions plugin to create and edit turn restrictions in JOSM
- See also how to edit turn restrictions in JOSM
- See Lane_tagging_comparison and Talk:Lane_tagging_comparison if you are mapping complex intersections
- Potlatch 2 has a built-in turn restriction editor
- Junction Editor in Mapzen. It is in Beta version now, if you want to try it - send a request to mapzen@cloudmade.com
Errors
References
See also
- Jughandle
- Different tagging (not ways but nodes for from and to) used at enforcement
Tools
- OSM Restriction Analyser - shows route restrictions as an overlay of sign-post icons. zoomed example (Be patient, XAPI is often overloaded.)
- cartography.sandbox.cloudmade.com/navdebug - Another map overlaying sign post icons
- Relation Check - Tool to generate a graphical display of relations, including restrictions, from a local .osm file.

