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

missing keys module for the zeroth nb #24

Closed
jgmbenoit opened this issue Jul 24, 2019 · 1 comment
Closed

missing keys module for the zeroth nb #24

jgmbenoit opened this issue Jul 24, 2019 · 1 comment

Comments

@jgmbenoit
Copy link

Running the second example in section `Get networks other ways' of the zerotn nb gives:
ModuleNotFoundError Traceback (most recent call last)
in ()
1 # add elevation to nodes automatically, calculate edge grades, plot network
----> 2 from keys import google_elevation_api_key
3 G = ox.add_node_elevations(G, api_key=google_elevation_api_key)
4 G = ox.add_edge_grades(G)
5 nc = ox.get_node_colors_by_attr(G, 'elevation', cmap='plasma', num_bins=20)

ModuleNotFoundError: No module named 'keys'

@gboeing
Copy link
Owner

gboeing commented Jul 29, 2019

You just need to create a file called keys.py in the same folder as the notebook, and inside the file add a line

google_elevation_api_key = 'YOUR-API-KEY-HERE'

@gboeing gboeing closed this as completed Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants