| Package | com.esri.baserver |
| Class | public final class DistanceCalcType |
| Inheritance | DistanceCalcType BaseEnum Object |
See also
| Property | Defined By | ||
|---|---|---|---|
| items : Array [static] [read-only]
Array of all items of this enumeration. | DistanceCalcType | ||
![]() | value : String [read-only]
Value of the enumeration item. | BaseEnum | |
| Method | Defined By | ||
|---|---|---|---|
[static]
Converts a string value to the enumeration item. | DistanceCalcType | ||
![]() | toString():String
Gets the value of the enumeration item. | BaseEnum | |
| Constant | Defined By | ||
|---|---|---|---|
| DRIVE_DISTANCE : DistanceCalcType [static] Drive distance method. | DistanceCalcType | ||
| DRIVE_TIME : DistanceCalcType [static] Drive time method. | DistanceCalcType | ||
| STRAIGHT_LINE : DistanceCalcType [static] Straight-line distance method. | DistanceCalcType | ||
| items | property |
items:Array [read-only] Array of all items of this enumeration.
public static function get items():Array| toEnumItem | () | method |
public static function toEnumItem(value:String, defaultItem:DistanceCalcType = null):DistanceCalcTypeConverts a string value to the enumeration item.
Parameters
value:String — String value of the enumeration.
| |
defaultItem:DistanceCalcType (default = null) — An enumeration value to be used if the value is not recognized.
|
DistanceCalcType — An enumeration item or the default item.
|
| DRIVE_DISTANCE | Constant |
public static const DRIVE_DISTANCE:DistanceCalcTypeDrive distance method.
| DRIVE_TIME | Constant |
public static const DRIVE_TIME:DistanceCalcTypeDrive time method.
| STRAIGHT_LINE | Constant |
public static const STRAIGHT_LINE:DistanceCalcTypeStraight-line distance method.