A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/arcgis-rest-js/api-reference/arcgis-rest-geocoding/reverseGeocode/ below:

reverseGeocode | ArcGIS REST JS

reverseGeocode Function reverseGeocode(coords: IPoint | ILocation | [void, void], requestOptions?: IEndpointOptions): Promise<IReverseGeocodeResponse>

Used to determine the address of a location.

Use dark colors for code blocks Copy

1
2
3
4
5
6
7
8
9
10
11
import { reverseGeocode } from '@esri/arcgis-rest-geocoding';
//
reverseGeocode([-118.409,33.943 ]) // long, lat
  .then((response) => {
    response.address.PlaceName; // => "LA Airport"
  });
// or
reverseGeocode({ long: -118.409, lat: 33.943 })
reverseGeocode({ latitude: 33.943, latitude: -118.409 })
reverseGeocode({ x: -118.409, y: 33.9425 }) // wgs84 is assumed
reverseGeocode({ x: -13181226, y: 4021085, spatialReference: { wkid: 3857 })
Parameters Parameter Type Notes coords IPoint | ILocation | [void, void] requestOptions IEndpointOptions

Additional options for the request including authentication.

Returns Promise<IReverseGeocodeResponse>

A Promise that will resolve with the data from the response.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4