Skip to content

Instantly share code, notes, and snippets.

@rajrao
Created July 21, 2023 05:14
Show Gist options
  • Save rajrao/b5e7ee2447deeb78d09a94614d1c8ac9 to your computer and use it in GitHub Desktop.
Save rajrao/b5e7ee2447deeb78d09a94614d1c8ac9 to your computer and use it in GitHub Desktop.
# https://geopy.readthedocs.io/en/stable/#nominatim
# https://nominatim.org/release-docs/develop/api/Overview/
from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent="test")
place = "New York"
location = geolocator.geocode(place)
print(location)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment