Key:duration

From OpenStreetMap Wiki
Jump to navigation Jump to search
Public-images-osm logo.svg duration
Osm element key.svg
Description
Time needed to pass through an element. Edit or translate this description.
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
Wikidata
Status: in use

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.

Related tags are aerialway:duration=* for aerialways, and maxstay=* for parking.

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 have been entered as simple integer minutes. This practice is discouraged as it's ambiguous with integer hours.

A few very long routes' durations are expressed in ISO 8601 format, but this is unnecessary because the duration of even the longest ferry route, way 672506453, can be expressed conventionally in hh:mm format.