Relation:xrestriction

From OpenStreetMap

Jump to: navigation, search
Please use Relation:restriction, the fault 'solved' by this relation can be solved by splitting the way at the junction.


Other languages: +/-
English  • 
Image:Mini-osm-logo.png xrestriction

One example for xrestriction
Description:

Used for a set of tags and members to represent a turn restriction.

Group:

XRestriction

Members: help
  • node - from
  • node - to
  • node - via
  • node - location_hint
Tagwatch: help



This relation is an alternative proposal to the Relation:restriction proposal. Relation:restriction does not allow mappers to unambiguously specify any of the 16 maneuvers possible where 2 bidirectional ways cross.

In its simplest case it uses 3 nodes (from, via and to) to specify 2 segments. After travelling along (from, via) it's not allow to immediately travel along (via, to). 'form' and 'via' must therefore by adjacent nodes on at least one way and 'via' and 'to' must be adjacent on another way. Non adjacent pairs can lead to ambiguity and is not allowed. It's up to the renderer and / or routing program to decide weather the restriction represents "no left" turn, "no right turn" or "no straight on" by examining the angles. Multiple relations are needed to specify "only left turn", "only right turn" and "only straight on".

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 Discussion
type xrestriction
except psv / bicycle / hgv / motorcar / foot The restriction does not apply to these vehicle types (possible 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
(and other similar ones from Map_Features)

Members

Way or Node Role Description Comments
node from one See above
node to one See above
node via one or more The junction. See above
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. Without this hint the renderer will just place the icon in the inside the triangle formed by from, via and to.
Personal tools
recent changes