Batch geocoding for free tier users

536
4
Jump to solution
01-05-2024 05:55 AM
FacundoAbrahanCerimeli
New Contributor

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?

0 Kudos
2 Solutions

Accepted Solutions
BobBooth1
Esri Contributor

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).

 

View solution in original post

0 Kudos
BobBooth1
Esri Contributor

I do not think that it is possible to batch geocode without using credits.

View solution in original post

4 Replies
BobBooth1
Esri Contributor

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).

 

0 Kudos
FacundoAbrahanCerimeli
New Contributor

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. 

is there a way to batch geocode addresses without saving them?  something luke forStorage=false but for batch geocoding? because ive seen that option only for single address geocoding. And in our case we do not intend to storage the data but just use it to make some calculations.
From the error im getting, it seems like by default is trying to storage the results
0 Kudos
BobBooth1
Esri Contributor

I do not think that it is possible to batch geocode without using credits.

John-Foster
Esri Contributor

@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.

--jf
0 Kudos