Skip to content

Commit

Permalink
Merge pull request #1254 from winnewoerp/main
Browse files Browse the repository at this point in the history
extend 'walk' filter for separately mapped sidewalks
  • Loading branch information
gboeing authored Dec 16, 2024
2 parents 1df9044 + 70ed467 commit 36e512e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 2.0.1 (TBD)

- fix message when missing optional dependencies in elevation module (#1250)
- update "walk" network_type to filter out ways whose sidewalks are mapped separately (#1254)

## 2.0.0 (2024-11-24)

Expand Down
2 changes: 2 additions & 0 deletions osmnx/_overpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def _get_network_filter(network_type: str) -> str:
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"]'
)

# biking: filter out foot ways, motor ways, private ways, and anything
Expand Down

0 comments on commit 36e512e

Please sign in to comment.