ESRI geocoder - Does *all* use now require a token?

2317
4
Jump to solution
07-13-2021 01:59 PM
Labels (1)
JosephElfelt1
Occasional Contributor

I have a leaflet map that uses the ESRI geocoder. My map gets one location per request, displays that spot on the map[ and does not save the data.

This page says using ESRI's geocoder in that manner is free: https://developers.arcgis.com/rest/geocode/api-reference/geocoding-free-vs-paid.htm

However, today the geocoder sends my map this message:

"code": 499, "message": "Token Required"

Can anyone shed light?

 

 

0 Kudos
1 Solution

Accepted Solutions
John-Foster
Esri Contributor

Please try the update. We did note in the github repo the updated terms https://github.com/esri/esri-leaflet#terms, the API key is going to be required.

--jf

View solution in original post

4 Replies
John-Foster
Esri Contributor

@JosephElfelt1 did you see this page that shows the steps to set up Leaflet with the geocode service?

 

https://developers.arcgis.com/esri-leaflet/geocode-and-search/search-for-an-address/

 

it should have all the steps you need to get an API key and add that to your Leaflet app use the geocode service.

--jf
0 Kudos
JosephElfelt1
Occasional Contributor

I have been using the following geocoding service which is in the ESRI Leaflet documentation.  L.esri.Geocoding.geocode()

And it has worked fine without an API key or token up until just recently.

  But if necessary I can switch to the REST API geocoding service.

0 Kudos
John-Foster
Esri Contributor

Please try the update. We did note in the github repo the updated terms https://github.com/esri/esri-leaflet#terms, the API key is going to be required.

--jf
JosephElfelt1
Occasional Contributor

Thanks for the info John.  I will review the TOS and use the update.