How can we identify that flight is late while departure

Hello @dogrock

Thank you for reply, Let’s use your mentioned equation in FlightInfoEx’s response, which is given in Question:

Above flight was not departed when we capture FlightInfoEx response:
(estimatedarrivaltime - filed_ete) - filed_departuretime
= (1574611500-00:55:00)-1574608200
= (Sunday, November 24, 2019 9:35:00 PM (IST) - 00:55:00) - Sunday, November 24, 2019 8:40:00 PM (IST)
= Sunday, November 24, 2019 8:40:00 PM (IST) - Sunday, November 24, 2019 8:40:00 PM (IST)
= 0

It means no delay, but image shows there had “4 hours 16 mins” delay. It means data is not matching.

Correct me, if i am wrong.

Hello @dogrock @foxhunter @bovineone

We need answer of this question quickly. we need to decide wether flightaware can give this data? If yes, please send me API endpoint, We can take real time flight and test it as well.

Hello everyone from Flightaware

How to pull departure delay information from API? we were waiting for satisfactory answer from 13 days still counting.

You are looking at the wrong flight. Due to a delay the flight scheduled to leave on the 23rd (IST) left on the 24th. This resulted in two instances of the same flight operating on the day.

(1) Delayed Flight
filed departure 2019-11-23 8:40pm IST, actual departure 2019-11-24 1:01am IST

(2) On Time Flight
filed departure 2019-11-24 8:40pm IST, actual departure 2019-11-24 9:10pm IST

It looks like you are using FlightInfoEx with a howMany=1. Since flights may appear in FlightInfoEx up to 48 hours ahead of their filed departure time this means you are likely consistently requesting the next day’s flight when trying to generate information on the current day’s flight.

Ideally a larger howMany (up to 15) should be used and the correct flight determined by the filed departure time instead of using the first result in the response list.

Hello @dogrock

Big Thank you for replying. When you say, “You are looking at the wrong flight. Due to a delay the flight scheduled to leave on the 23rd (IST) left on the 24th. This resulted in two instances of the same flight operating on the day.”

How our system identify such incident? Initially, When we search for a flight, at that time, it has correct faFlightID. It don’t have accurate data. then how our system know such flight information?
How can we predict such flight using flightaware API?

Right now IST time is: 10:21 AM
Doing test-case for belog flight:
Flight: VTI611
From : DEL to SXR
https://flightaware.com/live/flight/VTI611

Request:
https://flightxml.flightaware.com/json/FlightXML2/AirlineFlightSchedules
startDate:1575680400
endDate:1575716400
airline:VTI
flightno:611
howMany:1
offset:0

Response: 
{
"AirlineFlightSchedulesResult": {
    "next_offset": 1,
    "data": [
        {
            "ident": "VTI611",
            "actual_ident": "",
            "departuretime": 1575695100,
            "arrivaltime": 1575700500,
            "origin": "VIDP",
            "destination": "VISR",
            "aircrafttype": "A320",
            "meal_service": "Business: Meal / Economy: Food for sale, Meal",
            "seats_cabin_first": 0,
            "seats_cabin_business": 8,
            "seats_cabin_coach": 156
        }
    ]
}

}

From this API we found indent: VTI611

To get delay/early information: we do below API with given parameter

https://flightxml.flightaware.com/json/FlightXML2/FlightInfoEx
ident:VTI611
howMany:1
offset:0

we get below response:

{
"FlightInfoExResult": {
    "next_offset": 1,
    "flights": [
        {
            "faFlightID": "VTI611-1575608700-schedule-0001",
            "ident": "VTI611",
            "aircrafttype": "A320",
            "filed_ete": "01:10:00",
            "filed_time": 1575608700,
            "filed_departuretime": 1575781500,
            "filed_airspeed_kts": 231,![Flight-departure-delay|690x376](upload://uZuZP0N7z24ZqxJeafvrR7yOp5F.png) 
            "filed_airspeed_mach": "",
            "filed_altitude": 0,
            "route": "",
            "actualdeparturetime": 0,
            "estimatedarrivaltime": 1575786300,
            "actualarrivaltime": 0,
            "diverted": "",
            "origin": "VIDP",
            "destination": "VISR",
            "originName": "Indira Gandhi Int'l",
            "originCity": "New Delhi",
            "destinationName": "Srinagar / Srinagar Air Force Base",
            "destinationCity": "Srinagar"
        }
    ]
}

}

Now applying in your equation:

= (estimatedarrivaltime - filed_ete) - filed_departuretime
= (1575786300- 01:10:00) - 1575781500
= (Sunday, December 8, 2019 11:55:00 AM(IST) - 01:10:00) - Sunday, December 8, 2019 10:35:00 AM(IST)
= December 8, 2019, 10:45:00 AM(IST) - Sunday, December 8, 2019 10:35:00 AM(IST)
= 00:10:00

Here is flight snapshot which shows delay(1 hour late) in Flightaware but API didn’t send those data:

You are comparing the wrong flights, again.

The flight returned by your FlightInfoEx example is this flight: https://flightaware.com/live/flight/id/VTI611-1575608700-schedule-0001UK611 (VTI611) Vistara Flight Tracking and History 08-Dec-2019 (DEL / VIDP-SXR / VISR) - FlightAware

Your screenshot is of this flight, which has flight ID
VTI611-1575522300-schedule-0001: https://flightaware.com/live/flight/VTI611/history/20191207/0505Z/VIDP/VISR

These are different flights.

See this earlier response about how to locate the correct flight tracking page by flight ID; you should use this process to make sure you’re looking at the right flight page if you’re trying to compare flight page data with FlightXML data.

Hello Obj

Thank you for great observation. After reading your reply, we found that, we have error in selecting indent. We give a function to our user to search flight using Flight Airline-name and Flight-number with date.

User inputs:
Airline code: DAL
Flight number: 395
Flight time: 2019-12-06 10:30 PM

We converted above input in epochtime (we are finding flight for given whole day. So, we subtract 13 hours from given time, and add 13 hours in given time to have “starttime” & “endtime”) and send to flightaware in AirlineFlightSchedules API:
“startDate”: 1575624600,
“endDate”: 1575718200,
“flightno”: “395”,
“airline”: “DAL”

Response:

[
    {
        "ident": "CSN1008",
        "actual_ident": "DAL395",
        "departuretime": 1575700200,
        "arrivaltime": 1575715080,
        "origin": "KLAX",
        "destination": "KATL",
        "aircrafttype": "B739",
        "meal_service": "Business: Complimentary Alcohol / Economy: Complimentary Alcohol",
        "seats_cabin_first": 0,
        "seats_cabin_business": 20,
        "seats_cabin_coach": 160
    },
    {
        "ident": "WJA6914",
        "actual_ident": "DAL395",
        "departuretime": 1575700200,
        "arrivaltime": 1575715080,
        "origin": "KLAX",
        "destination": "KATL",
        "aircrafttype": "B739",
        "meal_service": "Business: No meal / Economy: No meal",
        "seats_cabin_first": 0,
        "seats_cabin_business": 20,
        "seats_cabin_coach": 160
    },
    {
        "ident": "AFR2662",
        "actual_ident": "DAL395",
        "departuretime": 1575700200,
        "arrivaltime": 1575715080,
        "origin": "KLAX",
        "destination": "KATL",
        "aircrafttype": "B739",
        "meal_service": "Business: Refreshments / Economy: Refreshments for sale",
        "seats_cabin_first": 0,
        "seats_cabin_business": 20,
        "seats_cabin_coach": 160
    },
    {
        "ident": "CES4175",
        "actual_ident": "DAL395",
        "departuretime": 1575700200,
        "arrivaltime": 1575715080,
        "origin": "KLAX",
        "destination": "KATL",
        "aircrafttype": "B739",
        "meal_service": "Business: Refreshments / Economy: Refreshments",
        "seats_cabin_first": 0,
        "seats_cabin_business": 20,
        "seats_cabin_coach": 160
    },
    {
        "ident": "KAL7387",
        "actual_ident": "DAL395",
        "departuretime": 1575700200,
        "arrivaltime": 1575715080,
        "origin": "KLAX",
        "destination": "KATL",
        "aircrafttype": "B739",
        "meal_service": "Business: No meal / Economy: No meal",
        "seats_cabin_first": 0,
        "seats_cabin_business": 20,
        "seats_cabin_coach": 160
    },
    {
        "ident": "DAL395",
        "actual_ident": "",
        "departuretime": 1575700200,
        "arrivaltime": 1575715080,
        "origin": "KLAX",
        "destination": "KATL",
        "aircrafttype": "B739",
        "meal_service": "Business: Refreshments / Economy: Refreshments for sale",
        "seats_cabin_first": 0,
        "seats_cabin_business": 20,
        "seats_cabin_coach": 160
    }
]

We can choose indent by applying filter on above data:

  1. Origin airport code
  2. departuretime

So, There have around 6 flight which has same data, How can we select correct indent?

Hello @obj @dogrock @bovineone @foxhunter @SoNic67

Can you reply please??

Those entries are a single Delta Airlines flight with code shares, not 6 flights.

Hello @tech0

How can we select correct indent then? Does all flight have same faFlightId?

How can we know which indent is right?

Hello @tech0 @dogrock @bovineone @foxhunter @obj @SoNic67

any updates? we need to deliver app to client.

Pushing a thread by replying to yourself won’t help.

If you need official support from FA, contact them using the official channels.

Hello @foxhunter

Is this not official channel? If not, please give me, if you have it.

support@flightaware.com

It is documented already in this thread.

As has already been pointed out by others, that JSON response is showing codeshares for the same flight by different airline identities. You can use the actual_ident field to see how they are all linked together by the same flight. That functionality is by design. In this case, DAL395 is the ident that is actually operating the flight for all of those codeshares.

Generally you will be able to perform other calls, such as FlightInfoEx, using any of the codeshare identities and still receive a response about the underlying actual ident automatically. However, some of the other functions, such as InFlightInfo or SearchBirdseyeInFlight, will only be able to locate flights when specifying the actual ident that is being used to operate the flight.

FlightAware provides complementary-level FlightXML support by the development team through this forum. That level of support provides responses typically during the US Central business hours M-F other than than US holidays, subject to personnel availability. You can email the customer support address for some basic questions, though for most technical questions they will simply refer you back to these forums. Aggressively complaining and tagging multiple people, particularly non-employees, repeatedly is not preferred behavior and generally does not improve the response time to your questions.

3 Likes