Proposal:Extended conditions for access tags: Difference between revisions

From OpenStreetMap Wiki
Jump to navigation Jump to search
("Proposed" status)
(→‎vehicle properties: clarified units)
Line 32: Line 32:
* < less than
* < less than


The comparison values are given in the same way as values for maxweight, maxaxleload etc.
The comparison values are given in the same way as values for maxweight, maxaxleload etc. Therefore, numeric values default to SI units (metres for lengths, tonnes for weights).




''Example:'' the information given by the signs on the right could be expressed as
''Example:'' the information given by the signs on the right could be expressed as
: access:weight>5.5 = destination
: access:weight>5.5 = destination



=== time ===
=== time ===

Revision as of 17:11, 10 June 2009

Extended conditions for access tags
Proposal status: Proposed (under way)
Proposed by: Tordanik
Tagging: [[Key:maxspeed:<condition1>:<condition2>..., access:<condition1>:<condition2>...|maxspeed:<condition1>:<condition2>..., access:<condition1>:<condition2>...]]=[[Tag:maxspeed:<condition1>:<condition2>..., access:<condition1>:<condition2>...=*|*]]
Applies to: *
Definition: an access tag only applies if the conditions are fulfilled
Statistics:

Draft started: 2009-03-07
RFC start: 2009-03-19


The core proposal Conditions for access tags describes a way of adding conditions to access information (such as the access and maxspeed keys). This proposal tries to extend this approach to multiple conditions and document some additional conditions.

Multiple conditions

A condition can be added to a key that already contains a condition in the same way as it would be added to a base key: By appending a colon and the condition.

Example: A maxspeed of 60 that is valid for hgv on wet roads could be expressed as

maxspeed:hgv:wet = 60

New conditions

vehicle properties

German signs for access:weight>5.5=destination
  • weight
  • axleload
  • height
  • width
  • length
  • draught

The following operators are used:

  • > greater than
  • < less than

The comparison values are given in the same way as values for maxweight, maxaxleload etc. Therefore, numeric values default to SI units (metres for lengths, tonnes for weights).


Example: the information given by the signs on the right could be expressed as

access:weight>5.5 = destination

time

An access tag can be restricted to certain time intervals by using

:time{<intervals>}

where <intervals> is a set of time ranges as used for opening hours.


Example: A pedestrian street that can be used by delivery vehicles from 06:00 to 10:00 and again from 18:00 to 22:00 can be tagged as

  • highway = pedestrian
  • access:time{06:00-10:00;18:00-22:00} = delivery

or, alternatively

  • highway=pedestrian
  • access:time{06:00-10:00} = delivery
  • access:time{18:00-22:00} = delivery

Example 2: If maxspeed for hgv is limited to 80 on weekends, but 120 otherwise, this could be described as

  • maxspeed:hgv = 120
  • maxspeed:hgv:time{Sa,Su} = 80

Debate

Comments

Please use the talk page.


See also