Packagecom.esri.ags.tasks.supportClasses
Classpublic class DistanceParameters
InheritanceDistanceParameters Inheritance Object

Input parameters for the distance() method on the GeometryService - requires at least geometry1 and geometry2.

See also

com.esri.ags.tasks.GeometryService.distance()
Live Sample - using DistanceParameters as input for distance() method.
Distance (Operation) in REST documentation


Public Properties
 PropertyDefined By
  distanceUnit : Number
Specifies the units for measuring distance between the two geometries.
DistanceParameters
  geodesic : Boolean = false
If true, then measures the geodesic distance between the two geometries.
DistanceParameters
  geometry1 : Geometry
The geometry from where the distance is to be measured.
DistanceParameters
  geometry2 : Geometry
The geometry to which the distance is to be measured.
DistanceParameters
Property Detail
distanceUnitproperty
public var distanceUnit:Number

Specifies the units for measuring distance between the two geometries.

geodesicproperty 
public var geodesic:Boolean = false

If true, then measures the geodesic distance between the two geometries.

The default value is false.

geometry1property 
public var geometry1:Geometry

The geometry from where the distance is to be measured. All geometry classes except Extent are supported.

See also

geometry2property 
public var geometry2:Geometry

The geometry to which the distance is to be measured. All geometry classes except Extent are supported.

See also