Continually receiving error from standard address geolocation request using Nominatim.
Code below:
from geopy.geocoders import Nominatimaddress = "90, Park Avenue, New York City, New York, 10016"geolocator = Nominatim(address, timeout=10, exactly_one=False)location = geolocator.geocode(address, timeout=10, exactly_one=False)Resulting error below:
Traceback (most recent call last): File "", line 1, in File ".../lib/python2.7/site-packages/geopy/geocoders/osm.py", line 176, in geocode self._call_geocoder(url, timeout=timeout), exactly_one File ".../lib/python2.7/site-packages/geopy/geocoders/base.py", line 147, in call_geocoder raise ERROR_CODE_MAP
Code below:
from geopy.geocoders import Nominatimaddress = "90, Park Avenue, New York City, New York, 10016"geolocator = Nominatim(address, timeout=10, exactly_one=False)location = geolocator.geocode(address, timeout=10, exactly_one=False)Resulting error below:
Traceback (most recent call last): File "", line 1, in File ".../lib/python2.7/site-packages/geopy/geocoders/osm.py", line 176, in geocode self._call_geocoder(url, timeout=timeout), exactly_one File ".../lib/python2.7/site-packages/geopy/geocoders/base.py", line 147, in call_geocoder raise ERROR_CODE_MAP
كود:
(message) GeocoderInsufficientPrivileges: HTTP Error 403: ForbiddenQuestion: The docs only acknowledge this occurs but does not prevent it ([URL]https://geopy.readthedocs.org/en/1.9.1/#geopy.exc.GeocoderInsufficientPrivileges[/URL]). They wrote,
[INDENT] "The remote geocoding service refused to fulfill a request using the account credentials given."
[/INDENT]What can I do to avoid this?
[url=http://gis.stackexchange.com/questions/139289/geopy-api-error-geocoderinsufficientprivileges]أكثر...[/url]