geopy: Insufficient Priveleges for Nominatim
When using Nominatim, we get an geopy.exc.GeocoderInsufficientPrivileges exception, even though Nominatim should not require account credentials:
>>> geolocator = Nominatim()
>>> geolocator.geocode("Washington, DC", timeout=10)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/geopy/geocoders/osm.py", line 191, in geocode
self._call_geocoder(url, timeout=timeout), exactly_one
File "/usr/local/lib/python2.7/dist-packages/geopy/geocoders/base.py", line 147, in _call_geocoder
raise ERROR_CODE_MAP[code](message)
geopy.exc.GeocoderInsufficientPrivileges: HTTP Error 403: Forbidden
Can anyone else confirm?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 22 (1 by maintainers)
0
“GeocoderInsufficientPrivileges” error - try to use ‘Photon’ instead of ‘Nominatim’
from geopy.geocoders import Photon geolocator = Photon(user_agent=“app_name here”)
I had a similar problem; I just left it for a while and it now works again. I think the problem was at the sever end.