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.
Namespace:
ESRI.ArcGIS.VE(in ArcGISVE.exe)
Syntax
| JScript |
|---|
function AddressToLocation( address : Object, callback : Function, outFields : array<String>[]()[] ) |
Parameters
- address
- Type: Object
Object containing properties which correspond to the various address fields accepted by the geocode service.
- callback
- Type: Function
The function that will handle the callback response. This function must take one argument, which will be an array of AddressCandidate objects.
- outFields
- Type: array<String>[]()[]
Array of names of out fields to be returned in response. Optional. If not used, the value of the Attributes property in the response will be null.
Remarks
For an example of using AddressToLocation, please see the example Use my ArcGIS Geocode Server
under Find addresses in the
Interactive SDK.
