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.
Since
200.1.0
Inherited properties
The API key allows your app to access ArcGIS location services and private portal items. An API key is a unique long-lived access token that is used to authenticate and monitor requests to ArcGIS location services and private portal items. You can create and manage an API key using your portal when you sign in with an ArcGIS Location Platform account or an ArcGIS Online account with administrator access or a custom role that has the Generate API keys
privilege. To learn how to create and manage API keys, go to the Create an API Key tutorial. You must ensure that your API key has the correct privileges to access secure resources.
The load status.
Functions
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.