Skip to content

Instantly share code, notes, and snippets.

@stochastic-thread
Created August 3, 2021 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stochastic-thread/4d1ddb1f6c145df0f64cf583c477ab46 to your computer and use it in GitHub Desktop.
Save stochastic-thread/4d1ddb1f6c145df0f64cf583c477ab46 to your computer and use it in GitHub Desktop.
from geopy.geocoders import Nominatim
location = "Rockville, Maryland; USA"
loc = geolocator.geocode(location)
location_payload = {"latitude": loc.latitude, "longtitude": loc.longitude}
print(location_payload)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment