Packagecom.esri.ags.tasks.geoEnrichmentClasses
Classpublic class DriveBuffer
InheritanceDriveBuffer Inheritance StudyAreaOptions Inheritance Object

Since : ArcGIS API 3.5 for Flex

The study area is created with drive time or drive distance buffers.



Public Properties
 PropertyDefined By
  radii : Array
An array of Number used to create ring buffers.
DriveBuffer
  units : String
The units of the radii.
DriveBuffer
Public Methods
 MethodDefined By
  
DriveBuffer(radii:Array = null, units:String = null)
Creates a new DriveBuffer.
DriveBuffer
  
toJSON(key:String = null):Object
[override] Convert this DriveBuffer to a JSON object.
DriveBuffer
Public Constants
 ConstantDefined By
  FEET : String = esriFeet
[static] Specifies that the units are in feet.
DriveBuffer
  KILOMETERS : String = esriKilometers
[static] Specifies that the units are in kilometers.
DriveBuffer
  METERS : String = esriMeters
[static] Specifies that the units are in meters.
DriveBuffer
  MILES : String = esriMiles
[static] Specifies that the units are in miles.
DriveBuffer
  MINUTES : String = esriDriveTimeUnitsMinutes
[static] Specifies that the units are in minutes.
DriveBuffer
Property Detail
radiiproperty
public var radii:Array

An array of Number used to create ring buffers.

unitsproperty 
public var units:String

The units of the radii. Supported options are:

Constructor Detail
DriveBuffer()Constructor
public function DriveBuffer(radii:Array = null, units:String = null)

Creates a new DriveBuffer.

Parameters
radii:Array (default = null) — An array of Number used to create ring buffers.
 
units:String (default = null) — The units of the radii.
Method Detail
toJSON()method
override public function toJSON(key:String = null):Object

Convert this DriveBuffer to a JSON object. If you need a JSON formatted string, you can pass this DriveBuffer directly to JSONUtil.encode().

Parameters

key:String (default = null) — Unused but required for compatibility with JSON.stringify().

Returns
Object — JSON object

See also

Constant Detail
FEETConstant
public static const FEET:String = esriFeet

Specifies that the units are in feet.

KILOMETERSConstant 
public static const KILOMETERS:String = esriKilometers

Specifies that the units are in kilometers.

METERSConstant 
public static const METERS:String = esriMeters

Specifies that the units are in meters.

MILESConstant 
public static const MILES:String = esriMiles

Specifies that the units are in miles.

MINUTESConstant 
public static const MINUTES:String = esriDriveTimeUnitsMinutes

Specifies that the units are in minutes.