Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !pip install googlemaps
- import googlemaps
- gmaps = googlemaps.Client(key='client-key')
- geocode_result = gmaps.geocode('1600 Amphitheatre Parkway, Mountain View, CA')
- lat = geocode_result[0]['geometry']['location']['lat']
- lng = geocode_result[0]['geometry']['location']['lng']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement