The Locator type exposes the following members.

Constructors

NameDescription
Locator
Initializes a new instance of the Locator class

Methods

NameDescription
AddressToLocation
Finds the map location of an input address by sending a callback request to the Locator service. The result of this operation is an array of AddressCandidate objects passed to callback function.
GetAvailableFields
Sends a callback request to get the available fields for an Geocode service. The result of this operation is an object passed to callback containing the available addressFields, candidateFields and intersectionCandidateField JSON objects.
GetRequiredFields
Sends a callback request to get the required fields for an AddressToLocation operation. The result of this operation is an string array passed to callback containing the names of the fields required by the Geocode Server.
LocationToAddress
Finds the closest address to the input geometry location. This is known as a reverse geocode operation. The result of this operation is an AddressCandidate object passed to callback function.

Properties

NameDescription
OnAddressToLocationComplete
Function that will process the results returned by the AddressToLocation request.
OnLocationToAddressComplete
Function that will process the results returned by the LocationToAddress request.
Token
Authentication token to be used in the task's requests to a secured ArcGIS service.
Url
URL of the ArcGIS Server Locator (Geocode) service exposed as a REST resource that will receive locator request.

See Also