Created
April 13, 2017 20:55
-
-
Save paulopperman/9f80f6f4cd65dafe8efc93a3f51fb4fb to your computer and use it in GitHub Desktop.
Geocoding with geopy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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