leaflet-geosearch
leaflet-geosearch copied to clipboard
Required update: Use the new ArcGIS geocoding endpoint
trafficstars
There are two required updates to the URL in esriProvider.ts.
- The
geocode.arcgis.comURL must be updated to use the new endpoint:geocode-api.arcgis.comto make authenticated requests via an API key or OAuth token to access the service. - The
findoperation is deprecated. You will need to usefindAddressCandidates.
Current
'https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find';
Required update
'https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates/token=<YOUR_API_KEY>'
What this entails
A user will need an ArcGIS account and an API key scoped to access the Geocoding service.