You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My proposal is not addressed by the documentation or examples
Existing issues
Nothing similar appears in an existing issue
What problem does your feature proposal solve?
Sidewalks have already been mapped as separate geometries in numerous neighborhoods worldwide. Where this is done correctly, the roadway (street centerline) is being tagged as not to be used by pedestrians using sidewalk=separate, sidewalk:both=separate, sidewalk:left=separate or sidewalk:right=separate. With the current version, the network type "walk" in OSMnx does still include such edges.
I propose adding the necessary rules to the "walk" filter.
What alternatives have you considered?
A workaround is of course to filter using a manual solution, but this can be avoided with the proposed solution.
Additional context
# New version of the "walk" filter in osmnx/_overpass.py
filters = {}
filters["walk"] = (
f'["highway"]["area"!~"yes"]{settings.default_access}'
f'["highway"!~"abandoned|bus_guideway|construction|cycleway|motor|no|planned|platform|'
f'proposed|raceway|razed"]'
f'["foot"!~"no"]["service"!~"private"]'
f'["sidewalk"!~"separate"]["sidewalk:both"!~"separate"]'
f'["sidewalk:left"!~"separate"]["sidewalk:right"!~"separate"]'
)
The text was updated successfully, but these errors were encountered:
Thanks @winnewoerp this looks great. Is this tagging convention documented as official on the OSM wiki? Could you link it here in a comment for reference?
So, the answer is "yes", right? Of course, this is currently not relevant for the largest part of the world, as this LoD of sidewalk mapping is still rare. But the other way round, there are no problems when it's included.
BTW: The filter(s) could also be written like this (saving a few bytes):
Contributing guidelines
Documentation
Existing issues
What problem does your feature proposal solve?
Sidewalks have already been mapped as separate geometries in numerous neighborhoods worldwide. Where this is done correctly, the roadway (street centerline) is being tagged as not to be used by pedestrians using sidewalk=separate, sidewalk:both=separate, sidewalk:left=separate or sidewalk:right=separate. With the current version, the network type "walk" in OSMnx does still include such edges.
Test both versions here:
Current https://overpass-turbo.eu/s/1VBe
Proposed https://overpass-turbo.eu/s/1VBg
What is your proposed solution?
I propose adding the necessary rules to the "walk" filter.
What alternatives have you considered?
A workaround is of course to filter using a manual solution, but this can be avoided with the proposed solution.
Additional context
The text was updated successfully, but these errors were encountered: