do not make inaccessible ways cycleable (often used for tram tracks)
This commit is contained in:
parent
241a43c4ad
commit
7bffc3a2b3
|
@ -163,6 +163,11 @@ class OSMHandler(osmium.SimpleHandler):
|
||||||
if not highway or highway not in HIGHWAY_TYPES:
|
if not highway or highway not in HIGHWAY_TYPES:
|
||||||
return
|
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)
|
zone = determine_zone(tags)
|
||||||
directionality, oneway = determine_direction(tags, zone)
|
directionality, oneway = determine_direction(tags, zone)
|
||||||
name = tags.get("name")
|
name = tags.get("name")
|
||||||
|
|
Loading…
Reference in a new issue