Eu tenho um mapa leaflet que usa o geocodificador ESRI. Meu mapa obtém uma localização por solicitação, exibe esse ponto no mapa e não salva os dados.<\/P>
Esta página diz que usar o geocodificador da ESRI dessa maneira é gratuito: https:\/\/developers.arcgis.com\/rest\/geocode\/api-reference\/geocoding-free-vs-paid.htm<\/A><\/P> No entanto, hoje o geocodificador envia esta mensagem para o meu mapa:<\/P>"code": 499, "message": "Token Required"<\/P>Alguém pode esclarecer? <\/P> <\/P> <\/P>
No entanto, hoje o geocodificador envia esta mensagem para o meu mapa:<\/P>
"code": 499, "message": "Token Required"<\/P>
Alguém pode esclarecer? <\/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.
Thanks for the info John. I will review the TOS and use the update.
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.
@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.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.