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

This package is not documented yet.

Parameter

string|array $location

boolean $useFirst

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

Throws

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

This function can not be called statically.