do not make inaccessible ways cycleable (often used for tram tracks)

This commit is contained in:
gluap 2024-01-31 14:02:35 +01:00
parent 241a43c4ad
commit 7bffc3a2b3
No known key found for this signature in database

View file

@ -163,6 +163,11 @@ class OSMHandler(osmium.SimpleHandler):
if not highway or highway not in HIGHWAY_TYPES:
return
access = tags.get("access", None)
bicycle = tags.get("bicycle", None)
if access == "no" and bicycle not in ["designated", "yes", "permissive", "destination"]:
return
zone = determine_zone(tags)
directionality, oneway = determine_direction(tags, zone)
name = tags.get("name")