Opened 13 months ago
Last modified 13 months ago
#24053 needinfo enhancement
Validator: Detect invalid barrier nodes — at Version 1
| Reported by: | anonymous | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core validator | Version: | |
| Keywords: | barrier | Cc: |
Description (last modified by )
Barrier tags must not be used on junction nodes connecting multiple ways. https://wiki.openstreetmap.org/wiki/Key:barrier#How_to_map_barrier_nodes
Such invalid barriers could be detected by the validator:
- a node has a barrier tag
- the node belongs to more than one way with a highway tag
Note:
See TracTickets
for help on using tickets.



Note that this can be fine with some barriers, e.g. bollards. And I assume you mean either three connecting ways or two connecting ways where at least one way isn't an end node.
Osmose has such a check, see sql41. Might be useful to see that implementation in case someone wishes to implement this.