getGeocodeService

Function

Used to fetch metadata from a geocoding service.

Parameters

Parameter Type Default Notes
requestOptions Optional IEndpointRequestOptions

Request options can contain a custom geocoding service to fetch metadata from.

Returns

Promise<IGetGeocodeServiceResponse> - A Promise that will resolve with the data from the response.


import { getGeocoderServiceInfo } from '@esri/arcgis-rest-geocoder';

getGeocoderServiceInfo()
  .then((response) => {
    response.serviceDescription; // => 'World Geocoder'
  });

Function defined in packages/arcgis-rest-geocoder/src/helpers.ts:49