Jump to content

Key:unit

From OpenStreetMap Wiki
unit
Description
Defines the units used by other attributes' values on the same element, or reference codes. Edit this description in the wiki page. Edit this description in the data item.
Group: properties
Used on these elements
should not be used on nodesshould not be used on waysshould not be used on areasshould not be used on relations (except multipolygon relations)
Status: deprecated

A long time ago unit=km/m/miles/mph/... was suggested for defining the units used by other attributes' values on the same element, based on the flawed assumption that it may be better for data handling to have the unit separated out from the value of a key. This is not an accepted tagging practice and not widely used. Instead, units are commonly given as part of a value, like maxspeed=30 mph or height=6'.

unit=* is now mostly used in some cases to indicate that something has a designated code at the level of the unit. For example, a building might be tagged unit=C. For those cases use addr:unit=* if this code is part of an address, or ref=*.

See also