I created a free account to test the batch geocoding service, the problem is that when i run the following command:
curl https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/geocodeAddresses \
-d 'f=pjson' \
-d 'addresses=
{
"records": [
{
"attributes": {
"objectid": 1,
"address": "Buckingham Palace"
}
},
{
"attributes": {
"objectid": 2,
"address": "Bernardis Restaurant London"
}
},
{
"attributes": {
"objectid": 3,
"address": "58 Brewer Street, London, England"
}
}
]
}' \
-d 'token=<ACCESS_TOKEN>'
i get the following error:
{
"error": {
"code": 403,
"extendedCode": -2147200253,
"message": "Token is valid but access is denied.",
"details": [
"User does not have permissions to store geocoding results."
]
}
}
but the token does only have permissions for not sotred geocode queries, why is it trying to store the data? i tried to find some parameter for batch geocoding that disables trying to store the results but i cant find them.
Is this a bad configuration from my side, or is it because is a free account?
Solved! Go to Solution.
It is probably the public account you're using. Batch geocoding consumes ArcGIS Online Credits, see the table on this page, about 2/3 of the way down (https://doc.arcgis.com/en/arcgis-online/administer/credits.htm).
I do not think that it is possible to batch geocode without using credits.
It is probably the public account you're using. Batch geocoding consumes ArcGIS Online Credits, see the table on this page, about 2/3 of the way down (https://doc.arcgis.com/en/arcgis-online/administer/credits.htm).
so from what i understan from this docs:
https://int-store.esri.com/en-us/store/products/buy/credits#accordion-1-3
Searching for addresses does not consume credits. Credits are only consumed when geocoded points are saved.
@FacundoAbrahanCerimeliDid you create a free ArcGIS Online Pubic Account or a free ArcGIS Developer Account?
If using a developer account, you are given 20,000 non-stored geocodes per month for free, but that is with the Find Address Candidates endpoint. In your case, you are using the batch Geocoding service, and there is no free tier available for that.