Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement