Skip to content

Commit

Permalink
Support aerialway in deadend detection
Browse files Browse the repository at this point in the history
Either station (for the big, mechanical ones) or zip_line (for the ones in the mountains where there's nothing but a line that you can clip into)
  • Loading branch information
Famlam authored and frodrigo committed Nov 3, 2023
1 parent a84443c commit a40fc91
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions analysers/analyser_osmosis_highway_deadend.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,12 @@
FROM
ways
WHERE
ways.tags != ''::hstore AND
tags != ''::hstore AND
(
(ways.tags?'amenity' AND ways.tags->'amenity' = 'parking') OR
(ways.tags?'railway' AND ways.tags->'railway' = 'platform') OR
(ways.tags?'aeroway' AND ways.tags->'aeroway' = 'taxiway')
(tags?'amenity' AND tags->'amenity' = 'parking') OR
(tags?'railway' AND tags->'railway' = 'platform') OR
(tags?'aeroway' AND tags->'aeroway' = 'taxiway') OR
(tags?'aerialway' AND tags->'aerialway' IN ('station', 'zip_line'))
)
UNION ALL
SELECT
Expand All @@ -131,7 +132,8 @@
tags != ''::hstore AND
(
(tags?'amenity' AND tags->'amenity' = 'parking_entrance') OR
(tags?'entrance' AND tags->'entrance' IN ('garage', 'emergency'))
(tags?'entrance' AND tags->'entrance' IN ('garage', 'emergency')) OR
(tags?'aerialway' AND tags->'aerialway' = 'station')
)
UNION ALL
SELECT DISTINCT
Expand Down

0 comments on commit a40fc91

Please sign in to comment.