Key:unit
Appearance
| Description |
|---|
| Defines the units used by other attributes' values on the same element, or reference codes. |
| Group: properties |
| Used on these elements |
| Status: deprecated |
| Tools for this tag |
| This tag has a lot of issues and is used for a bunch of unrelated things. Avoid it. |
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
- Map features/Units for specifying the unit within a tag value
addr:unit=*andbuilding:units=*for specifying sub-housenumber addressing