problem first step


#1

Hello,

I’m starting to use the api and i test the simple example :


<?php

$options = array(
                 'trace' => true,
                 'exceptions' => 0,
                 'login' => 'MyUserName',
                 'password' => 'MyKey',
                 );
$client = new SoapClient('http://flightxml.flightaware.com/soap/FlightXML2/wsdl', $options);

// get the weather.
$params = array("airport" => "KAUS");
$result = $client->Metar($params);
print_r($result);

?>

and my result is :

stdClass Object ( [MetarResult] => KAUS 080916Z 15003KT 1SM R17L/1800V2400FT BCFG BR SCT002 05/04 A2980 RMK AO2 T00500044 )

Is it normal ?

i don’t understand the result.

Thanks a lot


#2

See en.wikipedia.org/wiki/METAR for some details on the format.