gboeing / osmnx-examples

Gallery of OSMnx tutorials, usage examples, and feature demonstations.
https://osmnx.readthedocs.io
MIT License
1.52k stars 521 forks source link

AttributeError: module 'osmnx' has no attribute 'add_node_elevations' #1

Closed BlackArbsCEO closed 7 years ago

BlackArbsCEO commented 7 years ago

Attempting to implement the google elevation example found in notebook 12 results in the following error:


AttributeError                            Traceback (most recent call last)
<ipython-input-14-977fe0d112ef> in <module>()
      1 # add elevation to each of the nodes, using the google elevation API, then calculate edge grades
----> 2 G = ox.add_node_elevations(G, api_key=google_elevation_api_key)
      3 G = ox.add_edge_grades(G)

AttributeError: module 'osmnx' has no attribute 'add_node_elevations'
gboeing commented 7 years ago

@BlackArbsCEO what version of OSMnx are you using? The elevation module was added in v0.5.

BlackArbsCEO commented 7 years ago

Had to update both osmnx and the fiona package via conda forge, thanks!