1

Can someone explain to me why I am told that AttributeError: module 'osmnx' has no attribute 'get_nearest_node' when I run my streamlit application? I have installed scipy and scikit-learn.

1 Answers1

2

get_nearest_node() was removed from OSMnx in version 1.1.0.

The most similar function which is still available is osmnx.nearest_nodes(). However, it is slightly different and you should read the documentation to understand how.

Nick ODell
  • 15,465
  • 3
  • 32
  • 66