Skip to content

Commit

Permalink
make api_key argument optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sfedia committed Jun 18, 2023
1 parent f7523d6 commit 665ebe0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osmnx/elevation.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def add_node_elevations_raster(G, filepath, band=1, cpus=None):

def add_node_elevations_google(
G,
api_key,
api_key=None,
max_locations_per_batch=350,
pause_duration=0,
precision=None,
Expand All @@ -132,8 +132,8 @@ def add_node_elevations_google(
----------
G : networkx.MultiDiGraph
input graph
api_key : string
a valid API key
api_key : Optional[string]
a valid API key, сan be omitted if the API does not require a key
max_locations_per_batch : int
max number of coordinate pairs to submit in each API call (if this is
too high, the server will reject the request because its character
Expand Down

0 comments on commit 665ebe0

Please sign in to comment.