Talk:Key:distance

From OpenStreetMap Wiki
Jump to navigation Jump to search

"Distance" is a poor choice of word in English

The previous definition, saying that "distance" means "Distance of a relation ...", was not comprehensible in English. Distance must be between two places. A single thing such as a road cannot have a "distance". It can have a length, or an "extent", but only a distance from something else.

In the International Standard for RDS-TMC (Radio Data System -- Traffic Message Channel) traffic events can have a length, and also an extent. They cannot (by themselves) have a distance. They can have a distance away from a driver, but this is only meaningful when we say from where the distance is measured. In this case it appears from usage that this "distance" is to be measured between the road's start and end points.

This suggested definition still leaves certain issues undetermined. Lots of roads have breaks or jumps where they are not defined. They disappear at these gaps and then reappear elsewhere. How does the "distance" of a relation handle these gaps? Are the missing km somehow included or are they ignored? ̃

Peter Davies (talk) 00:23, 4 May 2014 (UTC) ̴̴

meters or kilometers

"the value is assumed to be in kilometers" Sure ?? i read meter here: https://wiki.openstreetmap.org/wiki/Map_Features/Units

Sure. As stated there, if not explicitly defined, the unit would be meters. However, here the unit kilometers has been explicitly defined for the key "distance". --Biff (talk) 01:15, 15 December 2013 (UTC)
Updated the units page to reflect the km default for distance. Neuhausr (talk) 16:21, 12 December 2014 (UTC)

Extent / length

If we want to map traffic signals we have to be more specific, because we can have the two possibilities. E.g.: We have a bend so far 1000m (distance) and of "duration" (extent? / length?) of 1000m. So we need other key: extent or length ?

default miles for U.S.?

since U.S. generally doesn't use metric, it would be nice if distance - and other units - defaulted to miles (and feet, yards) for U.S. locations DougGrinbergs (talk) 06:14, 29 May 2021 (UTC)

@DougGrinbergs: It's too late for that, because so many OSM-based tools and data consumers rely on the existing defaults documented in Map features/Units. It would be complicated anyways because the U.S. is one of several countries that use a mixture of both units depending on the context. – Minh Nguyễn 💬 21:43, 19 April 2022 (UTC)

Distance signs and units

distance=* is used on tens of thousands of traffic_sign=* nodes to indicate the distance on a distance sign. One edge case to be aware of is that a sign can display the same distance in dual units, sometimes requiring subkeys to distinguish between them, even if the units are explicitly specified. – Minh Nguyễn 💬 21:46, 19 April 2022 (UTC)

K+ notation

Mention what if we are given 19k+940 which is measured from point 19k(m), and is not equal to 19.940, although often close... but no guarantees! How should we fill it in? Jidanni (talk) 02:41, 26 February 2023 (UTC)