|Time needed to pass through an element.|
|Used on these elements|
|Tools for this tag|
This key page is a stub. You can help OpenStreetMap by expanding it.|
Similar pages for structural reference: Key:religion, Key:waterway.
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.
Be aware that values less than one hour have been entered as simple integer minutes. This practice is discouraged as it's ambiguous with integer hours.
A more formal alternative is ISO 8601, but usage is very low (< 20) in March 2017:
|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).|