Returns a polygon of the distance a vehicle can travel in X minutes or miles from a given starting point.
IUtility
Method detail
getDriveTime
()
method
public function getDriveTime(dataSource:String, point:GeoPoint, interval:int, units:String, responder:IResponder):void
Returns a polygon of the distance a vehicle can travel in X minutes or miles from a given starting point.
Parameters
dataSource:String — Contains the name of the data source to use for drive times.
point:GeoPoint — The starting coordinate of the drive-time calculation.
interval:int — Interval of distance or time. Be sure to set the appropriate units (km, miles, or minutes) for your interval. Default value is "minutes". Maximum values are "80" km, "50" miles, or "60" minutes.
units:String — "km" (kilometers), "miles", or "minutes" for the length of drive time.