I have been calling SearchBirdseyeInFlight
every 24 hours based upon this line in the documentation:
This function only searches flight data representing approximately the last 24 hours.
I am using {false inAir}
to ensure I get details of flights that have already arrived, assuming that flights in the air at the time of the API call will have arrived when I next call the API and I will get their details in that call.
One thing that is confusing is that the value of the arrivalTime
field is always 0 which, according to the documentation for InFlightAircraftStruct, is the value when the aircraft is still in flight(!!!):
arrivalTime int epoch when the flight arrived, or 0 if still in flight
I also get non-zero values for altitude, groundspeed, and heading which suggests that I’m getting the details for aircraft in flight.
I just manually called the API - less than 24 hours after the scheduled call - and there was no overlap in flights with the flights from my previous call. I now have alarm bells going off in my head. This API call is not doing what I am expecting it to do.
My complete query is:
{notmatch orig Y*} {match dest Y*} {false inAir}
What am I doing wrong? How do I guarantee that I get the details for all flights?