I'm following a tutorial on geocoding using geopandas. This is my code:
import geopandas
place = "Sankt Gallen"
geopandas.tools.geocode(place).explore()
When I run the code, I get the following error:
GeocoderNotFound: Unknown geocoder 'geocodefarm'; options are: dict_keys(['algolia', 'arcgis', 'azure', 'baidu', 'baiduv3', 'banfrance', 'bing', 'databc', 'geocodeearth', 'geocodio', 'geonames', 'google', 'googlev3', 'geolake', 'here', 'herev7', 'ignfrance', 'mapbox', 'mapquest', 'maptiler', 'nominatim', 'opencage', 'openmapquest', 'pickpoint', 'pelias', 'photon', 'liveaddress', 'tomtom', 'what3words', 'what3wordsv3', 'yandex'])
Does anyone know how to fix this error?
It looks like you have an outdated version of the geopandas
package installed, have you tried updating?
Alternatively, you may wish to try using the provider
keyword argument in the geocode method with one of the options provided in the error message.
geopandas.tools.geocode(place, provider='your_chosen_option').explore()