Proposed features/Conditions for restriction relations

From OpenStreetMap Wiki
Jump to: navigation, search
Conditions for restriction relations
Status: Rejected (inactive)
Proposed by: Tordanik
Tagging: if:<type of condition>=*
Applies to: relation
Definition: an restriction relation only applies if all conditions are fulfilled
Rendered as:
Draft start: 2011-07-08
RFC start: 2011-07-08
Vote start: 2011-07-23
Vote end: 2011-08-06

Some restrictions do not apply universally, but are limited to certain vehicles, some days or even some times of the day. This proposal suggests a solution for tagging this.

Contents

Proposed tags

Time

if:time = <time interval>

Use this where a restriction only applies at certain times. The values should use the syntax defined for Key:opening_hours.

Example: A "no left turn" restriction that only applies from 6:00 to 8:00 and again from 15:00 to 17:00

type=restriction
restriction=no_left_turn
if:time=06:00-08:00, 15:00-17:00

Mode of transport

example illustration
if:mode = <mode of transport>

Use this where only certain modes of transport (only hgvs, only buses, ...) are affected. The values are those that can also be used as keys for Key:access#Transport_mode_restrictions.

Example: "no u turn" for heavy goods vehicles

type=restriction
restriction=no_u_turn
if:mode=hgv

Evaluation of multiple conditions

If there is more than one "if" tag on the same relation, the restriction expressed by the relation is only active if all these "if" tags apply for the current situation.

Additional remarks

Where can I use these tags?

These tags can be used for all restrictions that are mapped as relations. Currently, we only tag turn restrictions as relations. If this ever changes, the tags introduced by this proposal can also used for other relations.

For restrictions that are mapped as tags, this proposal cannot be used. Consider using Proposed features/Conditions for access tags instead.

More conditions

There are other things that could affect whether a restriction applies or not. For example, the Conditions for access tags proposal includes special interest groups (such as forestry vehicles), darkness and wet roads. If someone finds an example for relations where these are needed, I'll add them to a sequel proposal.

Debate

Comments

Please use the talk page.

Voting

Please indicate whether you approve or oppose this tagging proposal. If you vote no, please also comment on the talk page and stay around for discussion so that there is a chance to improve the idea.

This is a factually incorrect statement. access tags are not defined to be used on restriction relations, and most of them would not even make sense in this context. Please clarify and discuss on the talk page. --Tordanik 11:53, 23 July 2011 (BST)

Personal tools
Namespaces
Variants
Actions
site
Toolbox