Calculates the distance between two geometries.
Syntax
Parameters
- geometry1
- The geometry from where the distance is to be measured.
- geometry2
- The geometry to which the distance is to be measured. The structure of geometry is same as the structure of the JSON geometry objects returned by the ArcGIS REST API. The use of simple syntax is not supported.
- parameters
- Parameters contains additional properties that defines how the distance task will be preformed.
Return Value
Returns the distance between the indicated geometries, the unit of measurement that the distance is measure is determined by the "distanceUnit" parameter. If "distanceUnit" is not supplied then the resulting distance will be measured in unit of the spatial reference.
Requirements
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8
See Also