Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Lesson_2/10_Requesting from Python Code/geocode.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
def getGeocodeLocation(inputString):
# Use Google Maps to convert a location into Latitute/Longitute coordinates
# FORMAT: https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key=API_KEY
# Then Store it in the DB
google_api_key = "PASTE_YOUR_KEY_HERE"
google_api_key = "YOUR_API_KEY"
locationString = inputString.replace(" ", "+")
url = ('https://maps.googleapis.com/maps/api/geocode/json?address=%s&key=%s'% (locationString, google_api_key))
h = httplib2.Http()
Expand Down