Created
August 3, 2021 10:03
-
-
Save stochastic-thread/4d1ddb1f6c145df0f64cf583c477ab46 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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