| Index | PHPmyEasyWeather | PHPmyEasyWeather Homepage |
getStationInfo -- return airport name, country and timezone of ICAO code
Array getStationInfo (string $ICAO);
getStationInfo will return all important information of the airport whose ICAO code ($ICAO) is given to the function. If there is no airport found with the given ICAO code getStationInfo will return false. There are about 4,000 airports contained in the icao_db directory, so most of the inquired stations will be provided.
getStationInfo returns an array with 7 elements and the following indexes:
"longitude", "latitude", "altitude" and "altimeter" are new since version 1.03
Usage:
<?
if ($info = getStationInfo("EDDM")) { echo $info["station"] . ", " . $info["country"] . ", timezone GMT " . $info["gmttime"]; } else { echo "no airport information found"; }
?>
will display: "Munich Franz Joseph Strauss, Germany, timezone GMT +1"
| Previous | Up | Next |