Packagecom.yahoo.maps.webservices.traffic
Classpublic class TrafficResponse

This class stores the overall traffic information and TrafficResultItems for the query.



Public Properties
 PropertyDefined by
  error : int
[read-only] A number containing the error code.
TrafficResponse
  errorMessage : String
[read-only] A string containing the error message
TrafficResponse
  lastUpdateDate : String
[read-only] A string containing the UNIX timestamp of the latest data update
TrafficResponse
  lastUpdateDateDisplay : String
[read-only] A string containing the read-able version of the lastUpdateDate.
TrafficResponse
  locale : String
[read-only] A string containing the locale used in the search.
TrafficResponse
  provider : String
[read-only] A string containing the name of the traffic data provider for this search.
TrafficResponse
  results : Array
[read-only] An array of the TrafficResultItem items.
TrafficResponse
  speed : Object
[read-only] An object containing the current speed data within the bounds of the map.
TrafficResponse
  timeZone : String
[read-only] A string containing the name of the time zone this location is located in.
TrafficResponse
Public Methods
 MethodDefined by
  
TrafficResponse(xml:XML)
Creates a new TrafficResponse object.
TrafficResponse
Property detail
errorproperty
error:int  [read-only]

A number containing the error code.

Implementation
    public function get error():int
errorMessageproperty 
errorMessage:String  [read-only]

A string containing the error message

Implementation
    public function get errorMessage():String
lastUpdateDateproperty 
lastUpdateDate:String  [read-only]

A string containing the UNIX timestamp of the latest data update

Implementation
    public function get lastUpdateDate():String
lastUpdateDateDisplayproperty 
lastUpdateDateDisplay:String  [read-only]

A string containing the read-able version of the lastUpdateDate.

Implementation
    public function get lastUpdateDateDisplay():String
localeproperty 
locale:String  [read-only]

A string containing the locale used in the search.

Implementation
    public function get locale():String
providerproperty 
provider:String  [read-only]

A string containing the name of the traffic data provider for this search.

Implementation
    public function get provider():String
resultsproperty 
results:Array  [read-only]

An array of the TrafficResultItem items.

Implementation
    public function get results():Array
speedproperty 
speed:Object  [read-only]

An object containing the current speed data within the bounds of the map.

Implementation
    public function get speed():Object
timeZoneproperty 
timeZone:String  [read-only]

A string containing the name of the time zone this location is located in.

Implementation
    public function get timeZone():String
Constructor detail
TrafficResponse()constructor
public function TrafficResponse(xml:XML)

Creates a new TrafficResponse object.

Parameters
xml:XML