Services_Weather_Metar::searchLocation

Services_Weather_Metar::searchLocation() – 指定した場所の ID を探し、結果の配列あるいは単一の 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

設定した場合は、結果の配列の最初の ID を返します。

Throws

throws PEAR_Error::SERVICES_WEATHER_ERROR_UNKNOWN_LOCATION

throws PEAR_Error::SERVICES_WEATHER_ERROR_DB_NOT_CONNECTED

throws PEAR_Error::SERVICES_WEATHER_ERROR_INVALID_LOCATION

Note

This function can not be called statically.