Key:duration
|
Time needed to pass through an element.
Properties
Used combinations in
|
| This key page is a stub. You can help OpenStreetMap by expanding it. Similar pages for structural reference; Key:religion, Key:waterway |
Tag that might be used to indicate duration of a route (that is bus, route=ferry, railway=funicular, aerialway=cable_car etc). Applied to ways and relations.
http://en.wikipedia.org/wiki/ISO_8601#Durations is kosher when it comes to the values of the tag, but there is also cases of the simpler 'hh:mm' or just 'mm'.
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).
Its uncertian how to show duration between is stops. Comments are welcome.
Values
Values entered to date are mostly simple descriptions like 'hh:mm' or simply 'mm'. An alternative would be to enter the values as described by ISO 8601.
| Tag | 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=* | P1Y6M5D | A duration of 1 year, 6 months, and 4 days. |
| duration=* | P00010605 | A duration of 1 year, 6 months, and 4 days represented by an alternative format (PYYYYMMDD). |
| 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. |