Services_Weather_Weatherdotcom::searchLocation

Services_Weather_Weatherdotcom::searchLocation() – Recherche un ID pour un endroit donné, retourne un tableau d'endroits possibles ou un simple ID

Synopsis

require_once '/Weather/Weatherdotcom.php';

PEAR_Error|array|string Services_Weather_Weatherdotcom::searchLocation ( string $location , bool $useFirst = = false )

Description

This package is not documented yet.

Parameter

string $location

boolean $useFirst

Si défini, le premier ID du tableau de résultats est retourné

Throws

Un objet PEAR_Error::SERVICES_WEATHER_ERROR_WRONG_SERVER_DATA est lancé

Un objet PEAR_Error::SERVICES_WEATHER_ERROR_UNKNOWN_LOCATION est lancé

Note

This function can not be called statically.