iframe header
  • Join FlightAware (Why Join?)
  • Login
  • US Flag 
12:13AM EDT

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Retrieval Info
PostPosted: Wed Jan 04, 2012 9:14 pm 
Offline

Joined: Thu Dec 29, 2011 10:02 am
Posts: 10
Hi guys,

I know that the result set is returned in an array.

Say
Code:
$params = array("ident" => "EJM221");
$result = $client->call( "InFlightInfo", $params);


Returns
Quote:
Array ( [InFlightInfoResult] => Array ( [faFlightID] => EJM221-1325696497-13-0 [ident] => EJM221 [prefix] => [type] => GLF5 [suffix] => Q [origin] => KROG [destination] => KBUR [timeout] => timed_out [timestamp] => 1325722386 [departureTime] => 1325712480 [firstPositionTime] => 1325704094 [arrivalTime] => 1325722742 [longitude] => 0 [latitude] => 0 [lowLongitude] => -118.616668701 [lowLatitude] => 34.2000007629 [highLongitude] => -93.9672241211 [highLatitude] => 36.4308319092 [groundspeed] => 0 [altitude] => 0 [heading] => [altitudeStatus] => [updateType] => [altitudeChange] => [waypoints] => 36.36666666666667 -94.1 ...............118.35 ) )


I removed some way points.
But I can get my way around to load the array details in to a variable.
Say I just need the faFlightID value

I have tried many combinations such as
Code:
$result["faFlightID"][0]
$result[0]["faFlightID"]
$result[0]
$result[0][0]


Perhaps I was looking at the wrong place?
Any help is greatly appreciated.

Cheers


Top
 Profile  
 
 Post subject: Re: Retrieval Info
PostPosted: Thu Jan 05, 2012 9:12 pm 
Offline

Joined: Thu Dec 29, 2011 10:02 am
Posts: 10
Got it solved.
Forgot to check the number of dimensions it had.

$result['InFlightInfoResult']['faFlightID'] works. yippi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
iframe sidebar


 

Airport Tracker/Info


-or-