Locator Task
A class can be used to convert an address to a point (geocode) or vice-versa (reverse geocode). LocatorTask involves finding matching locations for a given address. Reverse-geocoding is the opposite and involves finding corresponding addresses for a given location.
Constructors
Functions
Cancels loading metadata for the Loadable object.
Geocodes suggest with parameters and returns candidates. Executes geocoding based on result of suggestion.
Geocodes address with parameters and returns candidates. Executes a geocoding operation to find location candidates for a given address.
Geocodes multiline address with parameters and returns candidates. Executes a geocoding operation to find location candidates for a given multiline address.
Finds address with parameters by location point. Executes a reverse-geocoding operation to find address candidates for a given location.
Suggest address with parameters and returns possible variants. Geocoding suggestions provide a mechanism for implementing character-by-character auto-complete. Using a text input and optional SuggestParameters, suggested addresses can be quickly found and presented to the user. Suggestions are not limited to addresses, they can also be used for POIs (Points of Interest). To return a focused set of suggestions, set the SuggestParameters.getPreferredSearchLocation() or the SuggestParameters.getSearchArea(). Using the SuggestParameters.getPreferredSearchLocation() is similar to how ArcGIS Pro limits the suggestions returned.
Properties
An API key is a unique key used to authorize access to specific services and resources in ArcGIS Online. It is also used to monitor access to those services.