Skip to content

Commit

Permalink
Replace other references to googlemaps with gmaps
Browse files Browse the repository at this point in the history
Thanks to @sunil07t for the catch!
  • Loading branch information
shankari committed Jun 28, 2016
1 parent ff0c3bc commit b1eed9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emission/user_model_josh/utility_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,9 @@ def get_elevation_change(trip, testing=False):
down = random.randint(1, 100)
return (up, down)
time.sleep(1) # so we dont run out calls
c = googlemaps.client.Client(GOOGLE_MAPS_KEY)
c = gmaps.client.Client(GOOGLE_MAPS_KEY)
print get_route(trip)
jsn = googlemaps.elevation.elevation_along_path(c, get_route(trip), 200)
jsn = gmaps.elevation.elevation_along_path(c, get_route(trip), 200)
up, down = 0, 0
prev = None
for item in jsn:
Expand Down

0 comments on commit b1eed9e

Please sign in to comment.