Skip to content

Instantly share code, notes, and snippets.

@paulopperman
Created April 13, 2017 20:55
Show Gist options
  • Save paulopperman/9f80f6f4cd65dafe8efc93a3f51fb4fb to your computer and use it in GitHub Desktop.
Save paulopperman/9f80f6f4cd65dafe8efc93a3f51fb4fb to your computer and use it in GitHub Desktop.
Geocoding with geopy
# snippet from github.com/geopy/geopy/blob/master/README.md
from geopy.geocoders import Nominatim
geolocator = Nominatim()
location = geolocator.geocode("175 5th Avenue NYC")
print(location.address)
print((location.latitude, location.longitude))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment