[Phphtmllib-devel] SF.net SVN: phphtmllib:[3483] trunk/open2300/lib/modules/api/ AviationWeather.in
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2010-06-17 03:14:04
|
Revision: 3483 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3483&view=rev Author: hemna Date: 2010-06-17 03:13:58 +0000 (Thu, 17 Jun 2010) Log Message: ----------- detail info Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-17 02:57:19 UTC (rev 3482) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-17 03:13:58 UTC (rev 3483) @@ -65,7 +65,8 @@ if (!isset($airport["details"])) { $info = $this->get_airport_info($icao); if (!is_null($info)) { - $airport["details"] = $info; + $airport["details"] = 1; + $wxInfo = array_merge($wxInfo, $info); $this->cache->set($airport); } } @@ -74,7 +75,7 @@ var_dump($airport["details"]); } } - $this->metars[] = $wxInfo; + //$this->metars[] = $wxInfo; //need to combine this info w/ the airport data cache. } @@ -581,9 +582,13 @@ echo "\rfetch $icao ".$json->status; var_dump($json); if ($json->status == 200) { - - var_dump($json); - return $json; + $info = array("Name" => $info->Name, + "GeonameID" => $info->GeonameID, + "Timezone" => $info->Timezone, + "Latitude" => $info->Latitude, + "Longitude" => $info->Longitude); + var_dump($info); + return $json->Airport; } else { return null; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |