Lanes: Difference between revisions

Jump to navigation Jump to search
3,302 bytes added ,  12 years ago
Description of the lanes-extension. The existing redirection was removed and a link to the key "lanes" was added right on top of the page.
(Redirecting to Key:lanes)
(Description of the lanes-extension. The existing redirection was removed and a link to the key "lanes" was added right on top of the page.)
This article describes how to tag individual lanes of a road. To tag only the ''number'' of traffic lanes, see the key {{Key|lanes}}.
#REDIRECT [[Key:lanes]]
 
{{Languages}}
 
{{Feature
|description = To tag individual lanes of a road together with their distinctive properties.
|image = Dscf0444_600.jpg
|tags = {{Key|turn:lanes}}, {{Key|destination:lanes}}, {{Key|access:lanes}}, ...
}}
 
== Description ==
 
To tag individual lanes of a road together with their distinctive properties the key-extension <code>:lanes</code> can be used.
 
Lane-specific information can be expressed on a way by suffixing the key with <code>:lanes</code>. It is applicable to any existing <code><key>=<value></code> tag pair. In such case, the value of that key 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.
 
In the common case of two driving directions either <code>:forward</code> or <code>:backward</code> is added to the end of the key, i.e. <code><key>:lanes:forward</code> describes the properties of the lanes in the same direction as the osm-way, whereas <code><key>:lanes:backward</code> described the properties of the lanes in the opposite direction of the osm-way.
 
== Examples ==
 
=== Different maxspeed per lane ===
A simple example with <code>maxspeed</code> on a one-way street:
 
lanes=3
maxspeed:lanes=80|50|50
 
This would be a road with three lanes and with a <code>maxspeed</code> of 80 on the leftmost lane and 50 on all other lanes.
 
=== Two driving directions ===
 
In the common case of two driving directions either <code>:forward</code> or <code>:backward</code> is added to the end of the key.
 
lanes=6
lanes:forward=3
hgv:lanes:forward=no|yes|yes
hgv:lanes:backward=no|yes|yes
 
This is a road with three lanes in each direction and heavy good vehicles are prohibited on the leftmost lane in each direction.
 
Please note that the lanes are viewed in the respective driving direction, i.e. <code>hgv:lanes:forward</code> describes the lanes in the same direction as the osm-way and the first lane-value refers to the leftmost lane in this direction, whereas <code>hgv:lanes:backward</code> describes the lanes in the opposite direction of the osm-way and the first lane-value refers to the leftmost lane in that direction.
 
=== Motorway ===
The following example demonstrates tagging of a motorway.
[[File:Lanes_Example_2.png|800px]]
 
1
lanes=3
destination:lanes=A|A;B|B *
2
lanes=3
turn:lanes=slight_left|slight_left;slight_right|slight_right
3
lanes=3
turn:lanes=slight_left|slight_left;slight_right|slight_right
destination:lanes=A|A;B|B *
4
lanes=4
turn:lanes=slight_left|slight_left|slight_right|slight_right
destination:lanes=A|A|B|B
5
lanes=4
6_up
lanes=2
6_down
lanes=2
turn:lanes=none|merge_to_left
7_up
lanes=3
7_down
lanes=1
 
<nowiki>*</nowiki> These tags show how to add more than one value to a single lane, by separating those values with a ; (semi-colon).
 
== See also ==
 
* {{Key|lanes}} for tagging the number of traffic lanes
* {{Key|turn}} for turn lanes
* {{Key|destination}} for describing the direction of the highway
* [[Proposed_features/lanes_General_Extension|The proposal for the :lanes extension]]
2,079

edits

Navigation menu