Packagecom.yahoo.webapis.weather
Classpublic class Weather

Yahoo! Weather API Class. This class holds the data on current and forecast weather conditions.



Public Properties
 PropertyDefined by
  current : CurrentConditions
The current conditions.
Weather
  date : Date
The date and time of the current report, with UTC offset.
Weather
  description : String
The description of current weather report.
Weather
  forecast : Array
An array of forecast conditions (an item per day).
Weather
  language : String
A 2-letter code for the current report language.
Weather
  link : String
The URL for the weather.yahoo.com page for the corresponding weather report.
Weather
  location : Location
The geographic location for the current weather report.
Weather
  timeToLive : Number
Time to live for the current weather report.
Weather
  units : Units
The units of the current weather report.
Weather
Public Methods
 MethodDefined by
  
The Weather class constructor.
Weather
  
toString():String
A string output of the current and forecast conditions, and other Weather object properties.
Weather
Property detail
currentproperty
public var current:CurrentConditions

The current conditions.

dateproperty 
public var date:Date

The date and time of the current report, with UTC offset.

descriptionproperty 
public var description:String

The description of current weather report.

forecastproperty 
public var forecast:Array

An array of forecast conditions (an item per day).

languageproperty 
public var language:String

A 2-letter code for the current report language.

linkproperty 
public var link:String

The URL for the weather.yahoo.com page for the corresponding weather report.

locationproperty 
public var location:Location

The geographic location for the current weather report.

timeToLiveproperty 
public var timeToLive:Number

Time to live for the current weather report.

unitsproperty 
public var units:Units

The units of the current weather report.

Constructor detail
Weather()constructor
public function Weather()

The Weather class constructor.

Method detail
toString()method
public function toString():String

A string output of the current and forecast conditions, and other Weather object properties.

Returns
String — The current and forecast conditions, and other weather properties, as string.