-
Notifications
You must be signed in to change notification settings - Fork 809
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
OSMnx 2.0 Migration Guide #1123
Comments
controller.py:431: FutureWarning: The `north`, `south`, `east`, and `west` parameters are deprecated and will be removed in the v2.0.0 release. Use the `bbox` parameter instead. See the OSMnx v2 migration guide: gboeing/osmnx#1123 polygon = ox.utils_geo.bbox_to_poly(north, south, east, west) controller.py:733: FutureWarning: The `north`, `south`, `east`, and `west` parameters are deprecated and will be removed in the v2.0.0 release. Use the `bbox` parameter instead. See the OSMnx v2 migration guide: gboeing/osmnx#1123 graph = ox.graph_from_bbox() `north`, `south`, `east`, `west` parameters are deprecated use `bbox` as tuple parameter instead
The first OSMnx v2.0.0 pre-release (beta0) has been released. Testers needed! |
Briefly tested beta0 on a few of my existing notebooks. No major issues so far! |
I'm also seeing no major/unexpected issues thus far. |
No issues observed on a couple of my typical use cases ! Noting there in case the FutureWarning coming from Geopandas in the 1.0.0 latest version when calling |
Thanks @csebastiao. I'll make sure to resolve that FutureWarning before the next 2.0 beta release. I'm also planning to release a final patch version of 1.x at some point with pinned max dependency versions to avoid future dependency deprecation issues. |
Overview
OSMnx 2.0.0 is targeted for release later in 2024. This major release includes some breaking changes (including removing previously deprecated functionality) that are not backwards compatible with v1. This issue provides guidance on migrating from v1 to v2. It will be updated as more details are finalized.
Beta testers needed
Testers needed! OSMnx 2.0.0 is now in beta. You can help test it by installing the latest pre-release. Create a virtual environment then run
pip install --pre osmnx
Migrating to v2
The easiest way to ensure your code is fully compatible with OSMnx v2 is to install the latest v1 release (currently
1.9.3
), then run your code. The latest v1 release will remain compatible with the v1 API, but any deprecated functionality you're using will issue a FutureWarning with simple guidance to make it v2 compatible.You can also try out the latest 2.0.0 beta pre-release as described above.
The Examples Gallery has been updated for v2 compatibility if you're looking for sample code. There is also a new OSMnx reference paper up-to-date for v2.
Key changes
The three biggest overarching changes in 2.0 are:
In addition to these, there have been many smaller enhancements, fixes, and changes. See the changelog for details and see the latest documentation for an up-to-date user reference.
The text was updated successfully, but these errors were encountered: