Skip to content
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

plot_route_folium #1252

Closed
3 tasks done
falcaozane opened this issue Dec 12, 2024 · 2 comments
Closed
3 tasks done

plot_route_folium #1252

falcaozane opened this issue Dec 12, 2024 · 2 comments
Labels

Comments

@falcaozane
Copy link

Contributing guidelines

  • I understand the contributing guidelines

Documentation

  • My problem is not addressed by the documentation or examples

Existing issues

  • My problem does not appear in an existing issue

What operating system and Python version are you using?

Windows 11 / Python 3.12

What OSMnx version are you using?

v2

Environment packages and versions

no env

How did you install OSMnx?

Other (describe below)

Problem description

AttributeError: module 'osmnx' has no attribute 'plot_route_folium'

is this function removed

Complete minimal reproducible example

AttributeError: module 'osmnx' has no attribute 'plot_route_folium'
@falcaozane falcaozane added the bug label Dec 12, 2024
@gboeing gboeing added notabug and removed bug labels Dec 12, 2024
@gboeing
Copy link
Owner

gboeing commented Dec 12, 2024

Thanks for using OSMnx! If you've recently upgraded to v2 and are wondering how to ensure code compatibility, see #1123:

If you want to ensure your code is fully compatible with OSMnx v2 before upgrading to it, you can install the latest v1 release (currently 1.9.4), 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.

Yes, the folium module was deprecated with a warning for removal back in 2023, and finally removed in v2.0.0. The good news: interactive web mapping with folium remains easy to do with OSMnx in ~2 lines of code! See this example in the Examples Gallery for a demonstration.

@gboeing gboeing closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2024
@gboeing
Copy link
Owner

gboeing commented Dec 12, 2024

See also #957 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants