Tag:barrier=gate
![]() |
Description |
---|
A section in a wall or fence which can be opened to allow access. ![]() |
Rendering in openstreetmap-carto |
![]() |
Group: Barriers |
Used on these elements |
Useful combination |
See also |
Status: approved![]() |
|
Tools for this tag |
|
Wikidata |
Search Wikidata |
A gate is a section in a wall or fence which can be opened to allow or restrict access. They are usually made of wood or metal.
How to map
On a node
Simply add the tag barrier=gate to the node where the gate is.
This can be placed on a linear barrier, in the intersection node of a linear barrier and a highway way, or at a highway way node.
Avoid tagging highway intersections as that does not make clear which way has the impediment.
- Example (in JOSM editor)
On a way
Tag a way with barrier=gate on the real position and width of the gate, this should be connected to the fence at either side of the way.
Add a node on the intersection between any footways and the gate, also tagged with barrier=gate, much like how crossings are mapped. (This helps routers as many will just ignore the gate if there is no node)
- Example (in JOSM editor)
Additional tags
Also remember to add the access (e.g. access=private) to the path or road beyond the gate.
Example
Based on the location below, the gate node should be the end of a way. A new way starts with the gate node and it should have the access set to private if the access is restricted.
x------x------O++++x++++x
x
= nodeO
= node with barrier=gate------
default way+++++
way with access=private
Loading map...
Additional details
Gate details
The keys gate=* or gate:type=* are in use to specify more details for the gate type. Have a look at Taginfo (gate:type=) and Taginfo (gate=) until some definitions get agreed on and documented here.
Comparison
Similar keys (only gate:type=* was documented here until 2020-03):
gate:type=* | gate=* | gate_type=* |
---|---|---|

More info about gate at barrier=*.
Render
Tag | Type | Sample Location | OsmaRender/t@h | OSM Carto |
---|---|---|---|---|
barrier=gate | ![]() |
40°26′45.74″ N, 3°47′40.56″ W | ![]() |
Loading map... |