Getting scheduled arrival time from faFlightID


#1

I’m trying to find a way to determine the scheduled departure and arrival times for a flight based on the faFlightID but this doesn’t seem to be possible.

I would suggest that InFlightAircraftStruct should include this information as it does have the actual arrival and departure times (just not the scheduled) in it.

Actually, what I’d really like is for the FlightInfo and FlightInfoEx to be able to take an faFlightID so we don’t have to use the cludgy birds eye search mechanism - seems like a very heavyweight solution when we already have your unique id to hand!


#2

You could call FlightInfoEx() with the ident and walk through the returned list for the record with a faFlightID matching the one you’re looking for. The filed_departuretime and estimatedarrivaltime can then be retrieved from that record.


#3

That seems like a pretty heavy-handed solution for two reasons:

  • There is a separate API call with extra cost associated
  • I’d be calling a a much heavier call (returns multiple large records) for the sake of getting a single integer value - a value which isn’t even guaranteed to be in the first page of results from the API call requiring more requests to paginate through!

Is there any technical reason why the sceduled departure and arrival times don’t come back when calling methods that return an InFlightAircraftStruct? It seems like relevant information for a flight that is en route.

Also the results that are returned are inconsistent from different API calls, for example:

  • filed_altitude vs filedAltitude_max (mixed styles of case)
  • lat1 vs latitude (mixed use of abbreviated and non abbreviated terms)
  • estimatedarrivaltime vs filed_departuretime (whitespace and underscores inconsistently used)
  • waypoints returned as a space separated list of numbers (means they need to be parsed out, why aren’t they structured as an array? what happens if you want to add names to the waypoints list in future? all parsing code would be affected)
  • complex types not used where appropriate (such as an Airport complextype to contain all the origin/destination details instead of lots of separate fields in the main result structures).

I do however find the data the API provides fascinating and it’s a great service!