Geocoding

Find the location for an address or find the address of a selected location using the Geocoding service.

Geocoding

How it works

  1. Set your API Key in the ArcGISMap game object using the Inspector window (if you are using the SampleViewer scene you can set the key through the SampleSwitcher game object).
  2. Enter an address in the text field to get the location of the address.
  3. While holding shift, left-click on a location on the map to get the address (or description) of that location.
  4. Raycasts are used to determine the height at the queried location to account for elevation.
  5. This sample uses Esri's Geocoding service API, which requires an API Key. You can learn more about API keys and Accounts in the Mapping APIs and location services guide. Configure your API key to support Geocoding capabilities.

Note: This sample is only set up to work with mouse and keyboard.

Tags

geocode, reverse geocode, address, locate, search

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