Relation:restriction: Difference between revisions

From OpenStreetMap Wiki
Jump to navigation Jump to search
(→‎Road signs: no_exit, no_entry should mean that exit/entry is prohibited, not allowed (as the previously used term "permitted" would indicate))
No edit summary
Line 98: Line 98:
| [[Image:no_left_turn_b.png]]
| [[Image:no_left_turn_b.png]]
| restriction=no_left_turn
| restriction=no_left_turn
| Australia, Brazil, France, Ireland, Poland, Russia, Spain, Switzerland, UK, US (R3-2; R3-18 combined with no U-turn)
| Australia, Brazil, Dozec, France, Ireland, Poland, Russia, Spain, Switzerland, UK, US (R3-2; R3-18 combined with no U-turn)
|-
|-
| 3
| 3
Line 104: Line 104:
| restriction=no_right_turn
| restriction=no_right_turn
| a) Germany, Italy, Japan, The Netherlands, Russia
| a) Germany, Italy, Japan, The Netherlands, Russia
b) Australia, Brazil, France, Ireland, Spain, Poland, Russia, Switzerland, UK, US (R3-1)
b) Australia, Brazil, Dozec, France, Ireland, Spain, Poland, Russia, Switzerland, UK, US (R3-1)
|-
|-
| 4
| 4
| a [[Image:no_straight_on_a.png]] <br> b [[Image:no_straight_on_b.png]] <br />
| a [[Image:no_straight_on_a.png]] <br> b [[Image:no_straight_on_b.png]] <br />
| restriction=no_straight_on
| restriction=no_straight_on
| a) Germany, Japan, The Netherlands<ref>RVV 1990, sign D7</ref>, Poland, Russia, Switzerland, Israel
| a) Dozec, Germany, Japan, The Netherlands, Poland, Russia, Switzerland, Israel
b) Brazil, Ireland, US (UK and France never use such signs - you would usually be facing a No Entry sign in such a situation, or if it's two-way ahead you might see adjacent left-turn-only and right-turn-only signs)
b) Brazil, Ireland, US (UK and France never use such signs - you would usually be facing a No Entry sign in such a situation, or if it's two-way ahead you might see adjacent left-turn-only and right-turn-only signs)
|-
|-
Line 115: Line 115:
| a [[Image:no_u_turn_a.png]] <br> b [[Image:no_u_turn_b.png]]
| a [[Image:no_u_turn_a.png]] <br> b [[Image:no_u_turn_b.png]]
| restriction=no_u_turn
| restriction=no_u_turn
| a) Germany, France, Japan, Spain, Poland, Switzerland, Brazil, The Netherlands, US (R3-4), Israel, Russia
| a) Dozec, Germany, France, Spain, Poland, Switzerland, Brazil, The Netherlands, US (R3-4), Israel, Russia
b) Australia, United Kingdom
b) Australia, Japan, New Zealand, Cyprus, Malta, United Kingdom
|-
|-
| 6
| 6
Line 131: Line 131:
| [[Image:only_straight_on_a.png]]
| [[Image:only_straight_on_a.png]]
| restriction=only_straight_on
| restriction=only_straight_on
| Used in Russia and in the United Kingdom; usually seen just before a junction or on the approach to a junction<br>In the US you'll see the text "NO TURNS" in a white square (R3-3; R3-5a is usually used only in the case where one lane on a multi-lane road must turn)
| Used in Russia, Dozec, and in the United Kingdom; usually seen just before a junction or on the approach to a junction<br>In the US you'll see the text "NO TURNS" in a white square (R3-3; R3-5a is usually used only in the case where one lane on a multi-lane road must turn)
|-
|-
| 9
| 9

Revision as of 11:25, 27 May 2012

Public-images-osm logo.svg restriction
frameless|center|200px
Description
Used for a set of tags and members to represent a turn restriction. Show/edit corresponding data item.
Group: Restriction
Members

  • way - from
  • way - to
  • way node - via
  • node - location_hint
Status: de facto

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.


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.
The "from" and "to" members must start/end at the "via" node (see 1).

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
  1. If the way does not start or end at the "via"-node, split it!

Members

Way or Node Role Recurrence? Discussion
way from one a way from which restriction starts (e.g. no right turn from here)
way to one the other end of the restriction
node
way
via one (node) / one or more (way) the nodes or way between the end points across which you would travel if the turn weren't restricted - may just be the simple intersection of the two ways, or consider a dual carriageway where you can't turn across it, where via would be the nodes on each carriageway and/or the little way connecting the two carriageways.
node location_hint optionally one a hint to a renderer as to where might be a good place to position a symbol indicating the restriction. e.g. in a N/S/E/W cross roads where you can't turn from S to E, you might put a node just SE of the junction and the renderer might place a no right turn sign there.

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

Road Sign Restriction Remark
1 File:No left turn a.png restriction=no_left_turn + restriction=no_u_turn Germany, Italy, Japan, The Netherlands, Russia
2 File:No left turn b.png restriction=no_left_turn Australia, Brazil, Dozec, France, Ireland, Poland, Russia, Spain, Switzerland, UK, US (R3-2; R3-18 combined with no U-turn)
3 a File:No right turn a.png
b File:No right turn b.png
restriction=no_right_turn a) Germany, Italy, Japan, The Netherlands, Russia

b) Australia, Brazil, Dozec, France, Ireland, Spain, Poland, Russia, Switzerland, UK, US (R3-1)

4 a File:No straight on a.png
b No straight on b.png
restriction=no_straight_on a) Dozec, Germany, Japan, The Netherlands, Poland, Russia, Switzerland, Israel

b) Brazil, Ireland, US (UK and France never use such signs - you would usually be facing a No Entry sign in such a situation, or if it's two-way ahead you might see adjacent left-turn-only and right-turn-only signs)

5 a No u turn a.png
b No u turn b.png
restriction=no_u_turn a) Dozec, Germany, France, Spain, Poland, Switzerland, Brazil, The Netherlands, US (R3-4), Israel, Russia

b) Australia, Japan, New Zealand, Cyprus, Malta, United Kingdom

6 a File:Only right turn a.png
b File:Only right turn b.png
restriction=only_right_turn (a) typically approaching the junction and (b) at the junction
In the US, a white rectangular sign is used for this situation and the case where one lane on a multi-lane road must turn (R3-5R)
7 a File:Only left turn a.png
b File:Only left turn b.png
restriction=only_left_turn (a) typically approaching the junction and (b) at the junction
In the US, a white rectangular sign is used for this situation and the case where one lane on a multi-lane road must turn (R3-5L)
8 File:Only straight on a.png restriction=only_straight_on Used in Russia, Dozec, and in the United Kingdom; usually seen just before a junction or on the approach to a junction
In the US you'll see the text "NO TURNS" in a white square (R3-3; R3-5a is usually used only in the case where one lane on a multi-lane road must turn)
9 File:3.1.svg restriction=no_entry Used for not one-way roads, where entering across some point (member node with role via) is prohibited. Relation can have several from members and one to member.
10 File:3.1.svg restriction=no_exit Used for not one-way roads, where exiting across some point (member node with role via) is prohibited. Relation can have one from member and several to members.

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
Only right restriction.png type=restriction

restriction=only_right_turn

  • way A has role 'from'
  • way B has role 'to'
  • node n has role 'via'
At n from A only turning right to B is allowed. So turning to left is forbidden.
No left restriction.png type=restriction

restriction=no_left_turn

  • way A has role 'from'
  • way B has role 'to'
  • node n has role 'via'
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.
Via way restriction.png type=restriction

restriction=no_right_turn

  • way A has role 'from'
  • way B has role 'via'
  • way C has role 'to'
Users coming from way A cannot exit through way C.

Editors

Errors

References


See also

Tools