geocode
geocode
Functiongeocode(address: string | IGeocodeOptions): Promise<IGeocodeResponse>
Used to determine the location of a single address or point of interest. See the REST Documentation for more information.
Parameters
Parameter | Type | Notes |
---|---|---|
address | string | IGeocodeOptions | String representing the address or point of interest or RequestOptions to pass to the endpoint. |
Returns
Promise<IGeocodeResponse>
A Promise that will resolve with address candidates for the request. The spatial reference will be added to candidate locations and extents unless rawResponse: true
was passed.