-
Notifications
You must be signed in to change notification settings - Fork 827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unions filter #1199
Comments
Interesting idea for a relatively minimal change to make this a bit smoother for the user. I'm trying to think through the implications and trade-offs of this technique. Please share any insights as such. See also the discussion at gboeing/osmnx-examples#90 for another (possibly infeasible) idea of addressing this. |
Another way to implement this is actually use overpass unions. Example code (not tested).
In some cases, Adding support for On the other hand, creating own query structure for |
Closed by #1204 |
Contributing guidelines
Documentation
Existing issues
What problem does your feature proposal solve?
When developing city graph models, the size of the resulting graph might be important. Thanks to OSMnx, it's possible to use a pre-defined filters to request a network, based on desired types of OSM ways. But sometimes, it's needed to add an additional ways from OSM into network or union them based on multiple filters.
What is your proposed solution?
Make
custom_filter
accepts not only string, but a list of filters and then combine the results into single graph.Because OSMnx already supports sub-divided requests, it's easy to implement this without changing logic on actual graph creation (simplification, connectivity, etc).
What alternatives have you considered?
Requesting
osmnx.graph_from_*
multiple time and then merging result graphs manually without simplification.Additional context
The idea is described in this PR.
The text was updated successfully, but these errors were encountered: