Lanes: Difference between revisions

Jump to navigation Jump to search
60 bytes removed ,  1 month ago
m
Removed <code> in favour of Key templates.
(→‎Examples: In line with https://wiki.openstreetmap.org/wiki/Key:access#Land-based_transportation psv is for public service vehicles, which includes buses and taxis. The example here shouldn't confuse matters by saying psv;lanes means a bus restriction.)
m (Removed <code> in favour of Key templates.)
[https://taginfo.openstreetmap.org/search?q=%3Alanes taginfo *:lanes]
}}<!-- HINT: The template <nowiki>{{!}}</nowiki> gives back a vertical bar | -->
The subkey '''<code>:{{Suffix|lanes</code>}}''' can be used to tag individual lanes of a road.
 
The similar main key {{Key|lanes}} counts the number of traffic lanes.
 
Lane-specific information can be expressed on a way by suffixing the key with <code>:{{Suffix|lanes</code>}}. This suffix is applicable to any existing <code>{{k|<key>{{=}}<value></code>}} tag pair. The value of that tag then contains the values for each lane separated by a | (vertical bar) in left-to-right order as viewed in the respective driving direction of those lanes. If the value of a specific lane is left blank, the (possibly assumed/implicit) value of the main key without <code>:{{Suffix|lanes</code>}}-suffix applies (the so called ''default value'').
 
In the common case of two driving directions either <code>:{{Suffix|forward</code>}} or <code>:{{Suffix|backward</code>}} is added to the end of the key; i.e., <code>{{k|<key>:{{TagKey|lanes:forward</code>}}}} describes the properties of the lanes in the same direction as the osm-way, whereas <code>{{k|<key>:{{TagKey|lanes:backward</code>}}}} described the properties of the lanes in the opposite direction of the osm-way.
 
Please be aware that this extension covers all kinds of lanes for <u>all kind of vehicles</u> and is <u>not</u> restricted to motorized traffic.
== Examples ==
 
In principle every tag used to describe properties of a road can be extended by the <code>:{{Suffix|lanes</code>}} suffix when its value depends on the lane. Following list gives an overview of potentially useful combinations and a short description when they might be needed:
 
{| class="wikitable" border="1" cellspacing="0" cellpadding="4"
|-
|{{Key|access}}
|<code>{{Key|hgv|:=lanes</code>}}, <code>{{Key|psv|:=lanes</code>}}...
|Useful if access depends on the lane: For example lanes can be restricted to public service vehicles (<code>psv:lanes</code>) or forbidden for heavy good vehicles (<code>hgv:lanes</code>).
|-
|{{Key|maxspeed}}
|<code>{{Key|maxspeed:lanes</code>}}
|Can be used for roads where the maximum allowed speed depends on the lane. ''See [[#Different maxspeed per lane (with/without default values)|example]] below''.
|-
|{{Key|turn}}
|<code>{{Key|turn:lanes</code>}}
|Allows description of designated turn lanes or which lanes will merge in the direction of travel. ''See detailed examples below.''
|-
|{{Key|change}}
|<code>{{Key|change|:=lanes</code>}}
|Allows description of possible lane changes using the lane marking on the road.
|-
|{{Key|minspeed}}
|<code>{{Key|minspeed:lanes</code>}}
|Useful for roads where some lanes require a minimum speed or where lanes have different minimum speed.
|-
|{{Key|surface}}
|<code>{{Key|surface:lanes</code>}}
|Lane dependent surfaces, for example if there is cobblestone on the outer lane
|-
|{{Key|destination}}
|<code>{{Key|destination:lanes</code>}}
|While the road specific key describes the direction of the highway by using the name of the city the highway is heading to, the <code>destination:lanes</code> allows tagging of cities when sign-posted for individual lanes. See {{Key|destination}} for examples.
|-
|{{Key|width}}, {{Key|maxwidth}}
| <code>{{Key|maxwidth|:=lanes</code>}}, <code>{{Key|width|:=lanes</code>}}
|Where necessary, the width of lanes can be tagged. As usual <code>{{Key|maxwidth|:=lanes</code>}} would describe a legal width restriction and <code>{{Key|width|:=lanes</code>}} the actual width of a lane.
|-
|{{Key|maxheight}}
| <code>{{Key|maxheight|:=lanes</code>}}
|A height restriction may vary from one lane to another if the road passes beneath an overpass that is inclined or arched.
|-
|{{Key|hov}}
|<code>{{Key|hov:lanes</code>}}
|If one or more lanes of the road are restricted to high-occupancy vehicles (typically vehicles with 2+ occupants, although this varies by jurisdiction). Most useful if entrance/egress is permitted at any point along the route; if entering or exiting the HOV lane(s) is only permitted at certain locations, modeling the HOV lane(s) as separate ways is preferable.
|-
|{{Prefix|payment}}
|<code>{{K|{{TagKey|payment}}:<payment_method>:{{TagKey|lanes</code>}}}}
|In cases where a road toll has a special lane which segregates drivers by a certain payment method, it's possible to use the [[lanes]] scheme.
For example: a toll booth area with several normal lanes (where a driver must pay with cash or a card) and a special lane, usually on the far right or far left, where it's not needed to stop nor pay on the spot. One of such cases happens in Portugal, with {{Wikipedia|en|Via_Verde|text=no}} <ref>https://www.viaverde.pt/</ref>. In such cases, the following tag can be used: {{Prefix|payment|subkey=via_verde:lanes||no{{!}}no{{!}}only}}. (this means the highway has three lanes and the far right lane only allows drivers that are going to pay with ''Via Verde''.
=== Two driving directions ===
 
In the common case of two driving directions either <code>:{{Suffix|forward</code>}} or <code>:{{Suffix|backward</code>}} is added to the end of the key.
 
lanes=6
This is a road with three lanes in each direction and heavy good vehicles are prohibited on the leftmost lane in each direction.
 
The lanes are viewed in the respective driving direction; i.e., <code>{{Key|hgv|:=lanes|::=forward</code>}} describes the lanes in the same direction as the osm-way. The first lane-value refers to the leftmost lane in this direction. Whereas <code>{{Key|hgv|:=lanes|::=backward</code>}} describes the lanes in the opposite direction of the osm-way.
 
=== Minimum speed ===
|}
 
Please note the final <code>|</code> character in the value of <code>{{Key|minspeed|:=lanes:forward</code>}}: Because the right-most lane has '''no''' minimum speed, '''no value''' should be tagged after the lane separator.
 
=== Motorway with lanes and destinations ===
Pay attention to the value of the {{Key|lanes}} key. The number of lanes is referred to the lanes available to the traffic using the main {{Key|highway}} key, in this example and also by definition of {{Key|lanes}} key ''motorized traffic'', what excludes bicycle lanes. See [[Proposed_features/lanes_General_Extension#The_issues_with_the_lanes_tag|the proposal of the :lanes suffix]] for further explanation.
 
'''Note''': Access tags, like "<code>{{Key|bicycle:lanes</code>"}}, depend on the country and other circumstances:<br />
"<code>{{bicycle:lanes=||yes|{{!}}no|{{!}}designated|{{!}}yes</code>"}} value is result of fact that in this case bicycles are obligated to use bicycle lane in certain circumstances (e.g. as long as cyclist is not turning left or right or the cycle way is obstructed or otherwise not practicable, or the bike is too wide (e.g. trailer) and would encumber other cyclists). In other countries where use of bicycle lane is not fully obligatory for cyclists, like in Germany, tagging may be "<code>{{Key|bicycle:lanes=yes|yes|yes{{!}}yes{{!}}designated|{{!}}yes</code>"}}.
 
'''Note''': adding also {{tag|cycleway|lane}} would be fine and useful in this case.
621

edits

Navigation menu