Key:duration

From OpenStreetMap Wiki
Jump to: navigation, search
Available languages — Key:duration
· Afrikaans · Alemannisch · aragonés · asturianu · azərbaycanca · Bahasa Indonesia · Bahasa Melayu · Bân-lâm-gú · Basa Jawa · Baso Minangkabau · bosanski · brezhoneg · català · čeština · 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 · português do Brasil · română · shqip · slovenčina · slovenščina · Soomaaliga · suomi · svenska · Tiếng Việt · Türkçe · Vahcuengh · vèneto · Wolof · Yorùbá · Zazaki · српски / srpski · беларуская · български · қазақша · македонски · монгол · русский · тоҷикӣ · українська · Ελληνικά · Հայերեն · ქართული · नेपाली · मराठी · हिन्दी · অসমীয়া · বাংলা · ਪੰਜਾਬੀ · ગુજરાતી · ଓଡ଼ିଆ · தமிழ் · తెలుగు · ಕನ್ನಡ · മലയാളം · සිංහල · ไทย · မြန်မာဘာသာ · ລາວ · ភាសាខ្មែរ · ⵜⴰⵎⴰⵣⵉⵖⵜ · አማርኛ · 한국어 · 日本語 · 中文(简体)‎ · 吴语 · 粵語 · 中文(繁體)‎ · ייִדיש · עברית · اردو · العربية · پښتو · سنڌي · فارسی · ދިވެހިބަސް
Public-images-osm logo.svg duration
Osm element key.svg
Description
Time needed to pass through an element.
Group: Properties
Used on these elements
should not be used on nodesmay be used on waysshould not be used on areasmay be used on relations
Useful combination
Status: Unspecified

Used to indicate duration of a route that is bus, route=ferry, railway=funicular, aerialway=cable_car etc). The duration does not include any possibly required waiting time. Applied to relations or ways. The duration for a relation should contain the sum of durations needed for the individual relation elements.

Most useful where the route has a clear beginning and end. Should only be applied where normal routing algorithms and traffic analysis cannot figure out how long it takes (highways is the most obvious example).

It's uncertain how to show duration between stops. Comments are welcome.

Values

The recommended format is the simple 'hh:mm' format for hours and minutes. OSRM or GraphHopper support either 'mm', 'hh:mm' or 'hh::mm::ss'. Be aware that values less than one hour has been entered as simple integer minutes. This practice is discouraged as its ambigous with integer hours.

A more formal alternative is ISO 8601:

Tag and value Remarks
duration=P3Y A duration of 3 years.
duration=P13M A duration of 13 months.
duration=P4D A duration of 4 days.
duration=PT4H A duration of 4 hours.
duration=PT71M A duration of 71 minutes. This is not the same as P71M which denotes 71 months.
duration=PT21.2S A duration of 21.2 seconds.
duration=P1Y6M4D A duration of 1 year, 6 months, and 4 days.
duration=P00010604 A duration of 1 year, 6 months, and 4 days represented by an alternative format (PYYYYMMDD).
duration=P0001-06-04 A duration of 1 year, 6 months, and 4 days represented in extended format (PYYYY-MM-DDTHH:MM:SS).
duration=PT2H25M6S A duration of 2 hours, 25 minutes, and 6 seconds.
duration=PT022506 A duration of 2 hours, 25 minutes, and 6 seconds represented by an alternative format (PTHHMMSS). Note that in this representation more than 24 hours and 60 minutes and seconds should be avoided.
duration=PT02:25:06 A duration of 2 hours, 25 minutes, and 6 seconds represented in extended format (PYYYY-MM-DDTHH:MM:SS).