When I try to run this code.
from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent="ryan_data")
location = geolocator.geocode("175 5th Avenue NYC")
print(location.address)
I get this error.
GeocoderUnavailable: HTTPSConnectionPool(host='nominatim.openstreetmap.org', port=443): Max retries exceeded with url: /search?q=175+5th+Avenue+NYC&format=json&limit=1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))
This should be a pretty simple thing, but I can't get the code to run. I'm trying to run the code on my corporate laptop. The exact same code works perfectly find on my personal laptop. Any idea what's wrong here?
Documentation is here.
https://geopy.readthedocs.io/en/stable/#module-geopy.geocoders