Created
March 23, 2017 03:01
-
-
Save Khalian/2fb290a261aeb61a7785febd21979a4d to your computer and use it in GitHub Desktop.
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
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