Select to view content in your preferred language

User does not have permissions to access 'world.geocodeserver'

1421
1
08-01-2023 11:41 PM
Labels (1)
LucaMonda
New Contributor

I got this error while i was trying to do reverse geocoding to get the address by a point in a map.
I know this service probably became a pay-to-go service but i cannot find which service do i need to unlock to get authorization to do that.
I already unlocked all free services in my dashboard.
I already seen this page:   https://developers.arcgis.com/esri-leaflet/geocode-and-search/reverse-geocode/  but i didn't find nothing about scopes

Can you explain me? Thanks you in advance

1 Reply
John-Foster
Esri Contributor

@LucaMondayou will need to set your authentication with the geocoding privilege. Set an API key with geocoding (not stored) and it should work.

You can try it with a cURL call on your command line

curl https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode \
-d 'f=pjson' \
-d 'location=-79.3871,43.6426' \
-d 'token=YOUR_API_KEY'

 

--jf
0 Kudos