Overview

Packages

  • Service
    • Weather

Classes

  • Horde_Service_Weather
  • Horde_Service_Weather_Base
  • Horde_Service_Weather_Current_Base
  • Horde_Service_Weather_Current_Google
  • Horde_Service_Weather_Current_WeatherUnderground
  • Horde_Service_Weather_Current_Wwo
  • Horde_Service_Weather_Exception
  • Horde_Service_Weather_Exception_InvalidProperty
  • Horde_Service_Weather_Forecast_Base
  • Horde_Service_Weather_Forecast_Google
  • Horde_Service_Weather_Forecast_WeatherUnderground
  • Horde_Service_Weather_Forecast_Wwo
  • Horde_Service_Weather_Google
  • Horde_Service_Weather_Period_Base
  • Horde_Service_Weather_Period_Google
  • Horde_Service_Weather_Period_WeatherUnderground
  • Horde_Service_Weather_Period_Wwo
  • Horde_Service_Weather_Station
  • Horde_Service_Weather_Translation
  • Horde_Service_Weather_WeatherUnderground
  • Horde_Service_Weather_Wwo
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * Horde_Service_Weather class for abstracting access to various weather
 4:  * providers.
 5:  *
 6:  * Copyright 2011-2012 Horde LLC (http://www.horde.org/)
 7:  *
 8:  * @author   Michael J Rubinsky <mrubinsk@horde.org>
 9:  * @license  http://www.horde.org/licenses/bsd BSD
10:  * @category Horde
11:  * @package  Service_Weather
12:  */
13: 
14: /**
15:  * Horde_Service_Weather class
16:  *
17:  * @author   Michael J Rubinsky <mrubinsk@horde.org>
18:  * @category Horde
19:  * @package  Service_Weather
20:  */
21: 
22: class Horde_Service_Weather
23: {
24:     /** Forecast length constants **/
25:     const FORECAST_3DAY = 3;
26:     const FORECAST_5DAY = 5;
27:     const FORECAST_7DAY = 7;
28:     const FORECAST_10DAY = 10;
29: 
30:     /** Standard forecast summary **/
31:     const FORECAST_TYPE_STANDARD = 1;
32: 
33:     /** Detailed forecast, contains a day/night component for each day **/
34:     const FORECAST_TYPE_DETAILED = 2;
35: 
36:     /** Hourly forecast **/
37:     const FORECAST_TYPE_HOURLY = 3;
38: 
39:     const FORECAST_FIELD_WIND = 'wind';
40:     const FORECAST_FIELD_PRECIPITATION = 'pop';
41:     const FORECAST_FIELD_HUMIDITY = 'humidity';
42: 
43:     /** Unit constants **/
44:     const UNITS_STANDARD = 1;
45:     const UNITS_METRIC = 2;
46: 
47:     /** Conversion constants **/
48:     const CONVERSION_MPH_TO_KNOTS = 0.868976242;
49:     const CONVERSION_MPH_TO_KPH = 1.609344;
50:     const CONVERSION_KPH_TO_MPH = 0.621371192;
51:     const CONVERSION_MB_TO_INCHES = 0.0295301;
52: 
53:     /** Location search types **/
54:     const SEARCHTYPE_STANDARD = 1;
55:     const SEARCHTYPE_IP = 2;
56:     const SEARCHTYPE_ZIP = 3;
57:     const SEARCHTYPE_CITYSTATE = 4;
58: 
59: }
API documentation generated by ApiGen