diff --git a/api/obs/bin/openbikesensor_transform_osm.py b/api/obs/bin/openbikesensor_transform_osm.py index a5a76bd..97b0fa6 100755 --- a/api/obs/bin/openbikesensor_transform_osm.py +++ b/api/obs/bin/openbikesensor_transform_osm.py @@ -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")