Barriers
| |
| Description |
| Used for describe various forms of barrier, including walls, fences and gate. |
| Tags |
Physical barriers to all types of "beings" such as vehicles, humans or animals. Not only impediments to a given "way", but also to free movements such as a walk (not following a path) in the countryside. Note that there are two main types of barriers: Linear and Node. There is also an ITO Map layer to help track, and validate, barrier tags in OpenStreetMap.
Contents |
How to tag
Linear barriers
sided barriers:
- 5 barrier=retaining_wall. Behaves same as natural=cliff, that is no crossing as left-right are different height.
Lower side on right side of way direction, marked with dots. - 6 barrier=city_wall. Behaves same as natural=cliff, that is no crossing as left-right are different height.
Lower side on right side of way direction, marked with dots. - 7 barrier=city_wall / two_sided=yes. Both sides same height, marked with dots on both sides.
comments
When a linear barrier crosses a way they share a node. Always tag this node with the proper node barrier tag.
If it is just a "hole" with no limitations on the way then tag it as: barrier=entrance. e.g.:
· Two different ways coming to ends on each side are assumed to not form an entrance, so intersection node needs a tag.
· There is a "hole" in a linear barrier but no way is crossing then tag it the same way.
· The "hole" is big enough then make different linear barriers.
height=* can be used as attribute of linear barriers eg. barrier=wall height=3 ft or barrier=wall height=1 m
Node barriers
Node barriers are placed on ways, either highway or linear barriers.
barrier=* (free-form). see possible values to match spelling and avoid duplicating tags for same node barrier.
Possible render for types of node barriers:
|
1 barrier=block |
6 barrier=* |
11 barrier=lift_gate |
16 barrier=entrance |
Usage notes for barrier nodes
- Use access=* to tag who can pass the node
- Do not place a barrier node at a highway intersection
- place it on a highway alone
- or at the common node between a linear barrier and the way (if it's part of both)
- Example in JOSM editor:
Related tags
- access=*
- wheelchair=yes/no/limited
- operator=*
- height=*
Depending on the point of view same thing can be barrier or traffic calming, so there can be overlapping tags.
barrier type tags discussion.
Examples
A bollard which allows bicycles and pedestrians:
barrier=bollard,bicycle=yes,foot=yes
A one-way exit
barrier=spikes,foot=yes,oneway=yes
An operator=* tag may be used to indicate who operates the barrier (e.g. who has keys to a locked gate)
See also
- Approved_features/barriers > there is + info and wiki links to most of shown values.
- Taginfo (highway=gate)
- traffic_calming=*
- highway=crossing
- embankment=*
- Proposed_features/New_barrier_types a list of additional barrier features, approved by voting, contains also suggestions for access-control like RFID
to-dos
- Make renderers support barrier=*
- Osmarender supports: barrier=gate; barrier=lift_gate; barrier=cycle_barrier; barrier=bollard; barrier=fence; barrier=wall; barrier=retaining_wall; barrier=hedge
- Mapnik supports: barrier=bollard; barrier=fence; barrier=gate; barrier=hedge; barrier=retaining_wall; barrier=wall
- Make editors support barrier=*
- JOSM supports main barriers
- Make routing engines support barrier=* (already a WIP for Traveling Salesman)
- Add a photo for each type of gate


