suggest

Function

import { suggest } from '@esri/arcgis-rest-geocoder';
//
suggest("Starb")
  .then(response) // response.text === "Starbucks"

Used to return a placename suggestion for a partial string.

Parameters

Parameter Type Default Notes
partialText Required string
requestOptions Optional IEndpointRequestOptions

Options for the request including authentication and other optional parameters.

Returns

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


Function defined in packages/arcgis-rest-geocoder/src/suggest.ts:28