leaflet-geosearch icon indicating copy to clipboard operation
leaflet-geosearch copied to clipboard

Required update: Use the new ArcGIS geocoding endpoint

Open ak-kemp opened this issue 3 years ago • 0 comments
trafficstars

There are two required updates to the URL in esriProvider.ts.

  1. The geocode.arcgis.com URL must be updated to use the new endpoint: geocode-api.arcgis.com to make authenticated requests via an API key or OAuth token to access the service.
  2. The find operation is deprecated. You will need to use findAddressCandidates.

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.

ak-kemp avatar Mar 31 '22 21:03 ak-kemp