Relation:xrestriction
From OpenStreetMap
- Please use Relation:restriction, the fault 'solved' by this relation can be solved by splitting the way at the junction.
| Other languages: | +/- |
|---|
| English • |
| |
|
| Description: Used for a set of tags and members to represent a turn restriction. |
| Group: XRestriction |
| Members: help |
| 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) |


