Specifies the direction of a feature.
The key direction is used in a variety of situations to specify the direction of a feature.
Angles and cardinal directions
Angles and cardinal directions can be used for features which are mapped as either an independent node or an area. It allows to specify directions that are not related to any existing way. For nodes, examples are the direction of a cave entrance, cliff, view, or bench. For areas, examples are the direction of planting in a vineyard or planted forests.
|<number>||The given number specifies the degrees from 0 to 359 in which the feature faces, where 0 is equal to northward, using clockwise rotation.|
|<cardinal>|| One of the cardinal directions, specified using uppercase characters [NWSE], e.g. |
This image shows all possible values for cardinal directions together with the corresponding degrees.
The values direction=north/south/east/west are used as synonyms for direction=N/S/E/W and should be treated the same way. Combinations like e.g.
north-east should however not be specified in that form.
Bench facing east:
amenity=bench direction=E (or direction=90)
Cave entrance facing north-north-west:
Clockwise and anticlockwise
|anticlockwise||The mini-roundabout runs anti-clockwise.|
|clockwise||The mini-roundabout runs clockwise.|
Note that the default value for mini-roundabouts is anti-clockwise.
Mini-roundabout running clockwise:
Forward and backward
The directions forward and backward can be used to specify the direction of a feature relative to an existing way. This only applies to features which are tagged on a node that is part of a way. Examples may include directed traffic signs.
|direction||forward||The direction is forward, relative to how the associated way was drawn in the editor.|
|direction||backward||The direction is backward, relative to how the associated way was drawn in the editor.|
Note that this tagging is ambiguous in case the node belongs to more than one way! For this reason, use the forward and backward directions only on nodes which are part of exactly one way (or, depending on context, highway=*). Avoid junction nodes and nodes between two ways as well (where they have been split, but are connected by a node). If in doubt, better simply insert a new node into the way which can be freshly tagged.
The tags direction=up and direction=down have been used on highway=steps to specify if the stairs lead up or down in the direction of the way. This has since been obsoleted by incline=up and incline=down.
- Proposal about the (compass) direction of an asymmetric area or point feature
- Forward & backward, left & right for determining the overall geographic direction of a way (compare first node to last node)
- Do not confuse direction=* with destination=*.
- Relations/Proposed/Segmented Tag, proposes usage of "direction" with the values "both", "positive", and "negative" for a specific kind of relation.