Hello, we are trying to query some data about Flight cancellations and delays to show report in our Web page.
Our report gives information about few airports ( JFK, EWR , etc. ). We need to show percentage of how many flights were canceled/delayed for arriving and departing flights compared to total flights in specific airport.
We have some questions:
- when you specify ident_filter = JFK ( type_matching = origin or destination ) we don’t get any results for this airport, because in data returned airport code for JFK is KJFK, but when querying other methods like AirportInfo you get results if you specify airport_code = JFK because it has “alternate_ident”.
*Will it be fixed to give results when you specify only JFK ( same as airportinfo gives results for this code) or we need always ensure that US airports starts with letter K ?
2)when you specify “ident_filter” : “KJFK”, “time_period” : “today”, “type_matching” : “origin” to get departures from JFK you get response with:
“total_cancellations_worldwide”: x,
“total_cancellations_national”: x,
“total_delays_worldwide”: x,
And Matching array containing all airports info.
*Why you see KFJK record in Matching array? What information this record gives us ?
Example ( …\FlightCancellationStatistics?howMany=150&time_period=today&type_matching=origin&ident_filter=KJFK ) :
{
“FlightCancellationStatisticsResult”: {
“total_cancellations_worldwide”: 2,
“total_cancellations_national”: 2,
“total_delays_worldwide”: 8,
“next_offset”: 150,
“type_matching”: “origin”,
“matching”: [
{
“ident”: “KJFK”,
“description”: “John F Kennedy Intl”,
“cancellations”: 1,
“delays”: 0,
“total”: 636
},
{
“ident”: “LSZH”,
“description”: “Zurich (Kloten)”,
“cancellations”: 1,
“delays”: 0,
“total”: 3
},…
]
}
*Is matching array ordered by Cancellations Desc?
-
if we want to know Total flights ( success + canceled + delay ) we need to Sum “total” in matching? Also do we need to include JFK record in Sum?. What bother us that this record has very big “Total” value compared to other airports in matching ?
-
Maybe this record shows us Total flights for JFK ( JFK total + all other airports total ? ) and we just need to select it from matching to get Total_Total ?
“matching”: [
{
“ident”: “KJFK”,
“description”: “John F Kennedy Intl”,
“cancellations”: 1,
“delays”: 0,
“total”: 636
}, …
]
*I have calculated Total from all matching records excluding JFK ( 636 ) and i got similar value ~620. Does this mean that JFK had only 16 departure?
- any chance that in near future you will provide Total_Total flight sum ( like now you provide total_cancellations_national ) in response JSON ?
If something not clear please ask.