Key:locked

From OpenStreetMap Wiki
(Redirected from Tag:locked=no)
Jump to navigation Jump to search
locked
Description
Indicates whether a gate, barrier or other feature is normally locked or unlocked. Show/edit corresponding data item.
Group: Barriers
Used on these elements
may be used on nodesshould not be used on waysmay be used on areas (and multipolygon relations)should not be used on relations (except multipolygon relations)
See also
Status: approvedPage for proposal

Some gates are generally left unlocked so that anyone can open them, for example pool, playground or farm gates, while other gates are generally always locked to prevent public access. This tag is intended to help distinguish these scenarios.

access=* is used to describe the legal permission to travel through a barrier but does not indicate whether the barrier can physically be opened, for example in emergencies.

For example, it can be very important to know whether a gate on a roadway is usually locked and hence cannot be accessed easily without obtaining a key, or whether it is unlocked and can easily be opened and closed by anyone.

A key does not need to be a traditional key. It could also be a contactless card, swipe card or PIN code.

How to map

  • locked=yes The gate or barrier is usually locked and cannot be opened without a key or other unlocking method.
  • locked=no The gate or barrier is usually unlocked and can be opened without a key (though it may still need to be opened manually).

Conditionally locked

Railways

Lockable vs. locked

locked=yes indicates that an object is normally locked and requires a key or another unlocking method to access it. locked=no indicates that it is normally unlocked.

By contrast, lockable=* describes whether an object can be locked, regardless of whether it is normally locked or unlocked.

For example:

  • A locker with a fitting for a personal padlock, but without a padlock attached, can be tagged lockable=yes. This does not imply locked=yes.
  • A gate that can be locked but is normally left unlocked can be tagged lockable=yes and locked=no.
  • A gate that is normally locked and requires a key to open can be tagged locked=yes.

An object may be lockable without normally being locked. See lockable=* for further information.

Examples

  • A bicycle parking cage which requires a public transport card to open would be tagged locked=yes, since a "key" (in this case, the swipe card) is needed to get inside. locked=yes does not indicate how widespread or easily obtainable the key is, only that one is required.
  • A tourism=wilderness_hut for which you first have to retrieve the key somewhere would be tagged locked=yes.
  • A gate at a children's playground designed to prevent children from escaping while still allowing adults to open and close it would be tagged locked=no.
  • A farm entrance gate which is closed to prevent cattle and other livestock from escaping, but is not locked and can easily be opened and closed, would be tagged locked=no.
  • A gate along a highway=track which is locked to prevent the general public from driving past, but may be unlocked by emergency services or management vehicles, would be tagged locked=yes.

See also

  • lockable=* – Indicates whether an object can be locked, regardless of whether it is normally locked.
  • access=* – Describes legal access permissions and restrictions.
  • barrier:personnel=* – Applies to barriers where personnel control or restrict access.