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.

Namespace:  ESRI.ArcGIS.VE
  (in ArcGISVE.exe)

Syntax

JScript
 function LocationToAddress(
	location : VEShape, 
	distance : Number, 
	callback : Function
)

Parameters

location
Type: VEShape
VEShape pushpin point that represents the location.
distance
Type: Number
The distance (in meters) from the given location within which a matching addressed should be searched. If this parameter is not provided (or an invalid value is provided), a default value of 0 meters will be used.
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.

Remarks

For an example of using LocationToAddress, please see the example Get address at click location under Find addresses in the Interactive SDK.

See Also