Class GoogleWeather

Description

Google Weather data provider

Values in params:
dateFormat (string) => Date format for days; Used by CDateFormatter::format(), see Date Format Patterns for a description of formats. Default: "EEE d' 'MMM yyyy"
language (string) => ISO 639-1 code. Default: 'en' (English)
location (string) => Location.
The API is not published, but UK post codes, US zip codes and "place,region" seem to work. Place is the name of a town or city. Region is a US state, country name or an ISO 3166-1 alpha-2 code. Place and region are separated by a comma only - no spaces allowed.
units (string) => Units to provide the forecast in. "C"|"F" C=metric (default), F=imperial

Located in /providers/GoogleWeather.php (line 39)

WFBaseProvider
   |
   --WFXMLProvider
      |
      --GoogleWeather
Method Summary
WFWeatherForecast getForecast ( $params,  $symbols)
Methods
getForecast (line 104)

Fetches the forecast from the provider's datasource

Required by IWeatherForecastProvider interface

  • return: Forecast object
WFWeatherForecast getForecast ( $params,  $symbols)
  • $params
  • $symbols

Inherited Methods

Inherited From WFXMLProvider

WFXMLProvider::getXPath()
WFXMLProvider::read()
WFXMLProvider::__get()

Inherited From WFBaseProvider

WFBaseProvider::c2f()
WFBaseProvider::f2c()
WFBaseProvider::init()
WFBaseProvider::mph2kph()

Documentation generated on Tue, 13 Oct 2009 14:44:45 +0100 by phpDocumentor 1.4.2