Key:direction

From OpenStreetMap Wiki
(Redirected from Tag:direction=down)
Jump to: navigation, search
Available languages — Key:direction
· Afrikaans · Alemannisch · aragonés · asturianu · azərbaycanca · Bahasa Indonesia · Bahasa Melayu · Bân-lâm-gú · Basa Jawa · Basa Sunda · Baso Minangkabau · bosanski · brezhoneg · català · čeština · corsu · dansk · Deutsch · eesti · English · español · Esperanto · estremeñu · euskara · français · Frysk · Gaeilge · Gàidhlig · galego · Hausa · hrvatski · Igbo · interlingua · Interlingue · isiXhosa · isiZulu · íslenska · italiano · Kiswahili · Kreyòl ayisyen · kréyòl gwadloupéyen · Kurdî · latviešu · Lëtzebuergesch · lietuvių · magyar · Malagasy · Malti · Nederlands · Nedersaksies · norsk bokmål · norsk nynorsk · occitan · Oromoo · oʻzbekcha/ўзбекча · Plattdüütsch · polski · português · română · shqip · slovenčina · slovenščina · Soomaaliga · suomi · svenska · Tagalog · Tiếng Việt · Türkçe · Vahcuengh · vèneto · Wolof · Yorùbá · Zazaki · српски / srpski · беларуская · български · қазақша · македонски · монгол · русский · тоҷикӣ · українська · Ελληνικά · Հայերեն · ქართული · नेपाली · मराठी · हिन्दी · भोजपुरी · অসমীয়া · বাংলা · ਪੰਜਾਬੀ · ગુજરાતી · ଓଡ଼ିଆ · தமிழ் · తెలుగు · ಕನ್ನಡ · മലയാളം · සිංහල · བོད་ཡིག · ไทย · မြန်မာဘာသာ · ລາວ · ភាសាខ្មែរ · ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ‎ · አማርኛ · 한국어 · 日本語 · 中文(简体)‎ · 中文(繁體)‎ · 吴语 · 粵語 · ייִדיש · עברית · اردو · العربية · پښتو · سنڌي · فارسی · ދިވެހިބަސް
Public-images-osm logo.svg direction
Kompas Sofia.JPG
Description
Specifies the direction of a feature.
Used on these elements
may be used on nodesmay be used on waysmay be used on areasuse on relations unspecified
Status: ApprovedPage for proposal

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.

Value Element Description
<number> NodeArea 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> NodeArea One of the cardinal directions, specified using uppercase characters [NWSE], e.g. NE means north-east. See the image below for all possible values and their meaning.

This image shows all possible values for cardinal directions together with the corresponding degrees.

Angles.svg

Synonyms

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.

Examples

Bench facing east:

 amenity=bench
 direction=E (or direction=90)

Cave entrance facing north-north-west:

 natural=cave_entrance
 direction=NNW

Field of view of a tourism viewpoint

For a viewpoint, it may be appropriate to tag the field of view with the following pattern:

  <number>-<number> // e.g. 90-180
  <cardinal>-<cardinal> //e.g. E-W

Please note the rotation of the angle or cardinal. This is always clockwise.

360° Panorama view

There is a discussion at the german Forum and at the tagging mailinglist, how the 360° panorama view should be tagged. Tendency would be "0-360".

Simple value

It is the responsibility of the application or rather renderer, how it parse and draw simple values (e.g. 270 or S).

Maps

Clockwise and anticlockwise

On highway=mini_roundabout nodes, a different variant of the direction key is used.

Value Element Description
anticlockwise Node The mini-roundabout runs anti-clockwise.
clockwise Node The mini-roundabout runs clockwise.

Note that the default value for roundabouts and mini-roundabouts is anti-clockwise in most countries (or territories) driving on the right side of bidirectional highways, and clockwise in other countries (or territories) driving on the left side (e.g. United Kingdom or Hong Kong SAR).

Roundabouts and mini-roundabouts are themselves not bidirectional so their direction is almost always implicit (given the applicable national or territorial default rules), and cases where the effective direction is reversed (needing this tag explictly) are extremely rare everywhere (they exist only when a small roundaround, for example in a service/industrial/harbour way, is just aside another major bidirectional street and its normal rotation direction would require vehicules to go in opposite direction of the major street without enough space left for another lane separation: collisions would be unavoidable).

Example

Mini-roundabout running clockwise:

 highway=mini_roundabout
 direction=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.

Key Value Element Description
direction forward Node (part of Way) The direction is forward, relative to how the associated way was drawn in the editor.
direction backward Node (part of Way) 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.

Warning: Some editors don't recognise this tag. When reversing the direction of the way, the direction on the nodes of that way might not be changed, and you won't be notified of possible mistakes. So be careful when changing the direction of a way. JOSM is one editor which is able to detect and reverse the direction.

Obsolete uses

Steps

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.

See also