iframe header
  • Join FlightAware (Why Join?)
  • Login
  • US Flag 
05:30AM EDT

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: First try ... fail :)
PostPosted: Fri Jan 06, 2012 5:34 pm 
Offline

Joined: Wed Mar 01, 2006 7:00 pm
Posts: 29
I'm using PHP/nusoap:

Code:
$params = array("ident" => "N534UA", "howMany" = 15);
$result = $fa->call("FlightInfo", $params);


This gives me
Code:
no data available


But http://flightaware.com/live/flight/N534UA seems to work.

Other API calls work for me, like the example Metar. If I try InFlightInfo for that tail, I get an array of zero values, which I presume is because it's sitting on the ground presently :)


Top
 Profile  
 
 Post subject: Re: First try ... fail :)
PostPosted: Fri Jan 06, 2012 5:58 pm 
Offline
FlightAware Staff
bovineone - FlightAware user avatar

Joined: Wed Jul 27, 2005 3:00 am
Posts: 234
Location: FlightAware WHQ
That tail number does its primary activity under the callsign "UAL720", so if you change your query to use that instead it will succeed.

Not all of the FlightXML methods currently support lookups by tail number if the flight was using a callsign. InFlightInfo is one that does and its documentation notes "Codeshares and alternate idents are automatically searched"


Top
 Profile  
 
 Post subject: Re: First try ... fail :)
PostPosted: Fri Jan 06, 2012 6:17 pm 
Offline

Joined: Wed Mar 01, 2006 7:00 pm
Posts: 29
bovineone wrote:
Not all of the FlightXML methods currently support lookups by tail number if the flight was using a callsign.

Hmm, I was hoping to tie up tails to flights; how does the web site do it then?


Top
 Profile  
 
 Post subject: Re: First try ... fail :)
PostPosted: Fri Jan 06, 2012 7:03 pm 
Offline
FlightAware Staff
bovineone - FlightAware user avatar

Joined: Wed Jul 27, 2005 3:00 am
Posts: 234
Location: FlightAware WHQ
Our website has access to more information than what is currently exposed via FlightXML.

You can use "AirlineFlightInfo" with the faFlightID of "UAL720-1325664767-airline-0046" and it will tell you that it is using tailnumber "N534UA", however at this time there is no easy way to perform a FlightXML lookup directly by just tail number if it was actually operating under a call sign. We may add this functionality in the future though.


Top
 Profile  
 
 Post subject: Re: First try ... fail :)
PostPosted: Fri Jan 06, 2012 7:08 pm 
Offline

Joined: Wed Mar 01, 2006 7:00 pm
Posts: 29
bovineone wrote:
at this time there is no easy way to perform a FlightXML lookup directly by just tail number if it was actually operating under a call sign. We may add this functionality in the future though.

Ok, thanks.


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

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


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-