Skip to content

Commit

Permalink
Don't warn on bridges mapped as (pedestrian) area
Browse files Browse the repository at this point in the history
For an pedestrian area, we cannot determine the starting point of the bridge, so any node can be a valid starting point.

Example: https://www.openstreetmap.org/way/1277780728
  • Loading branch information
Famlam authored and frodrigo committed Aug 21, 2024
1 parent 13b2bef commit 708cbaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions analysers/analyser_osmosis_highway_tunnel_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
(NOT bt_connections.tags?'covered' OR bt_connections.tags->'covered' = 'no')
)
) AND
NOT bt_ways.is_area AND -- any point of an area can be an end point
NOT bt_ways.is_construction AND NOT bt_connections.is_construction AND
-- Below: filter all cases where one would for instance walk from a building directly onto a bridge
(NOT bt_connections.tags?'indoor' OR bt_connections.tags->'indoor' = 'no') AND
Expand Down

0 comments on commit 708cbaa

Please sign in to comment.