Services_Weather_Metar::searchLocation()

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

Synopsis

require_once '/Weather/Metar.php';

PEAR_Error|array|string Services_Weather_Metar::searchLocation (string|array $location, bool [$useFirst = FALSE])

Description

Ce module n'est actuellement pas documenté.

Paramètres

string|array $location

booléen $useFirst

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

Valeurs renvoyées

Un objet PEAR_Error::SERVICES_WEATHER_ERROR_UNKNOWN_LOCATION est lancé

Un objet PEAR_Error::SERVICES_WEATHER_ERROR_DB_NOT_CONNECTED est lancé

Un objet PEAR_Error::SERVICES_WEATHER_ERROR_INVALID_LOCATION est lancé

Note

Cette fonction ne peut pas être appelée de façon statique.