J'ai une carte leaflet qui utilise le géocodeur ESRI. Ma carte obtient un emplacement par requête, affiche ce point sur la carte et ne sauvegarde pas les données.<\/P>
Cette page indique que l'utilisation du géocodeur ESRI de cette manière est gratuite : https:\/\/developers.arcgis.com\/rest\/geocode\/api-reference\/geocoding-free-vs-paid.htm<\/A><\/P> Cependant, aujourd'hui le géocodeur envoie ce message à ma carte :<\/P>"code": 499, "message": "Jeton requis"<\/P>Quelqu'un peut-il éclairer ?<\/P> <\/P> <\/P>
Cependant, aujourd'hui le géocodeur envoie ce message à ma carte :<\/P>
"code": 499, "message": "Jeton requis"<\/P>
Quelqu'un peut-il éclairer ?<\/P>
<\/P>
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.
@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.
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.
Thanks for the info John. I will review the TOS and use the update.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.