getGeocodeService

getGeocodeService

Function
getGeocodeService(requestOptions?IEndpointOptions): Promise<IGetGeocodeServiceResponse>

Used to fetch metadata from a geocoding service.

Use dark colors for code blocksCopy
1
2
3
4
5
6
import { getGeocoderServiceInfo } from '@esri/arcgis-rest-geocoding';

getGeocoderServiceInfo()
  .then((response) => {
    response.serviceDescription; // => 'World Geocoder'
  });
Parameters
ParameterTypeNotes
requestOptions
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.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.