getGeocodeService
FunctiongetGeocodeService(requestOptions?: IEndpointOptions): Promise<IGetGeocodeServiceResponse>Used to fetch metadata from a geocoding service.
import { getGeocoderServiceInfo } from '@esri/arcgis-rest-geocoding';
getGeocoderServiceInfo()
.then((response) => {
response.serviceDescription; // => 'World Geocoder'
});Parameters
| Parameter | Type | Notes |
|---|---|---|
request | IEndpointOptions | 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.