FlightAware Discussions

Flight data is not accurate

API: FlightInfoEx

'FlightInfoExResult' =>
array (
'next_offset' => -1,
'flights' =>
array (
0 =>
array (
'faFlightID' => 'AAL115-1621639997-airline-0061',
'ident' => 'AAL115',
'aircrafttype' => 'A321',
'filed_ete' => '04:32:00',
'filed_time' => 1621808940,
'filed_departuretime' => 1621813200,
'filed_airspeed_kts' => 454,
'filed_airspeed_mach' => '',
'filed_altitude' => 340,
'route' => 'RBV Q430 SAAME J6 HVQ Q68 BWG ARG FSM IRW PNH J6 TCC J6 DRK J231 HIPPI GABBL HLYWD1',
'actualdeparturetime' => 1621815924,
'estimatedarrivaltime' => 1621834680,
'actualarrivaltime' => 1621834680,
'diverted' => '',
'origin' => 'KJFK',
'destination' => 'KLAX',
'originName' => 'John F Kennedy Intl',
'originCity' => 'New York, NY',
'destinationName' => 'Los Angeles Intl',
'destinationCity' => 'Los Angeles, CA',
),
),
),
)

Opening flight by submmiting below link:

Now calculating Delay based on answer of the thread “Departure delay” by @cbw

  • How late the arrival was = (actualarrivaltime - (filed_departuretime + filed_ete)).
    = 1621834680-(1621813200+04:32:00) → submitting value as per key
    = 1621834680-(1621813200+ 16320) → converting sec from hours * min
    = 1621834680-(1621829520) → adding filed_departuretime + filed_ete
    = 5160 → At final sum, we get this values. those amounts of second are late

Here are my observation:

  • filed_ete is wrong, image shows " 5h 41m" as total time, So whole calculation goes wrong.

We need to know that, how can we calculate correct delay & early like the image shows?

Does anyone responsible to answer questions?