Skip to content

Instantly share code, notes, and snippets.

@Khalian
Created March 23, 2017 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Khalian/2fb290a261aeb61a7785febd21979a4d to your computer and use it in GitHub Desktop.
Save Khalian/2fb290a261aeb61a7785febd21979a4d to your computer and use it in GitHub Desktop.
from geopy.geocoders import Nominatim
geolocator = Nominatim()
location = geolocator.geocode("2550 3rd Avenue Seattle")
print(location.address)
print((location.latitude, location.longitude))
# Output
# 2550, 3rd Avenue, Belltown, Seattle, King County, Washington, 98121, United States of America
# (47.6165771, -122.3473058)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment