Packagecom.mapquest
Classpublic class DistanceUnits
InheritanceDistanceUnits Inheritance MQType

Type for distance units. Either Miles or Kilometers.



Public Properties
 PropertyDefined by
  KILOMETERS : DistanceUnits
[static]
DistanceUnits
  MILES : DistanceUnits
[static]
DistanceUnits
Public Methods
 MethodDefined by
  
DistanceUnits(code:int)
Construct a new DistanceUnits object.
DistanceUnits
 Inherited
equals(type:*):Boolean
Checks the equality of the values of two MQType objects.
MQType
  
getClassName():String
Returns the text name of this class.
DistanceUnits
  
Returns the version of this class.
DistanceUnits
  
getValue():int
DistanceUnits
 Inherited
intValue():int
MQType
Property detail
KILOMETERSproperty
public static var KILOMETERS:DistanceUnits
MILESproperty 
public static var MILES:DistanceUnits
Constructor detail
DistanceUnits()constructor
public function DistanceUnits(code:int)

Construct a new DistanceUnits object.

Parameters
code:int
Method detail
getClassName()method
public override function getClassName():String

Returns the text name of this class.

Returns
String — The text name of this class.
getObjectVersion()method 
public function getObjectVersion():Number

Returns the version of this class.

Returns
Number — The version of this class.
getValue()method 
public function getValue():int

Returns
int