The code below works on my personal laptop but not on my work laptop.
import pandas as pd
import folium
import geopy
from geopy.geocoders import Nominatim
# Geocoding
geolocator = Nominatim(user_agent="myGeolocator")
location = geolocator.geocode("225 Baker St NW, Atlanta, GA 30313, United States")
location.raw
# Reverse Geocoding
from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent="myGeolocator")
location = geolocator.reverse("33.76326745, -84.39511726814364")
When I run the code on my work laptop I get this result:
GeocoderUnavailable: HTTPSConnectionPool(host='nominatim.openstreetmap.org', port=443): Max retries exceeded with url: /reverse?lat=33.76326745&lon=-84.39511726814364&format=json&addressdetails=1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))
Basically, I would like to loop through a bunch of addresses in a dataframe and concatenate the latitude and longitude coordinates to each address (add two columns, per row, to the dataframe). How can I do that using a free service (maybe GeoPy, maybe Google Maps, etc.).