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:
- Origin airport code
- departuretime
So, There have around 6 flight which has same data, How can we select correct indent?