Regrading Multiple flights Showing under same parameters


#1

I am using below mention parameters to get details of flight but more then one flights are showing so we need one flight info which is accurate

I am using AirlineFlightSchedules API

Parameters :-

'startDate' => '1536362160',
'endDate' =>'1536391500',
'airline' => 'UA',
'flightno' => '1882'

Flights Details :-1:
{
“AirlineFlightSchedulesResult”: {
“next_offset”: -1,
“data”: [{
“ident”: “ANZ9518”,
“actual_ident”: “UAL1882”,
“departuretime”: 1536387360,
“arrivaltime”: 1536405900,
“origin”: “KLAX”,
“destination”: “KEWR”,
“aircrafttype”: “B752”,
“meal_service”: “Business: Snack or brunch / Economy: Snack or brunch”,
“seats_cabin_first”: 0,
“seats_cabin_business”: 28,
“seats_cabin_coach”: 114
}, {
“ident”: “UAL1882”,
“actual_ident”: “”,
“departuretime”: 1536387360,
“arrivaltime”: 1536405900,
“origin”: “KLAX”,
“destination”: “KEWR”,
“aircrafttype”: “B752”,
“meal_service”: “Business: Snack or brunch / Economy: Food for sale”,
“seats_cabin_first”: 0,
“seats_cabin_business”: 28,
“seats_cabin_coach”: 114
}]
}
}

How can i get correct details

is any one know about.


#2

One flight is a “code share” of the other. In this case, UAL1882 is the actual flight and the ANZ9518 is the codeshare of it. You can look at the “actual_ident” field to determine the relationship between the two.


#3

Actually i need to save correct flight information in our local database based on the mention 4 parameters so how can i get any solution ?


#4

Also I have searched one more flight from Los Angeles to New York date 7th Sept 18 based one the start date time ,end date time ,airline and flight No now i am getting 4 flights data for same date ,time,airline and flight no.

we need one flight information to save in our local database so how confirm which flight is we should save.

{
“AirlineFlightSchedulesResult”: {
“next_offset”: -1,
“data”: [{
“ident”: “DAL1594”,
“actual_ident”: “”,
“departuretime”: 1536361800,
“arrivaltime”: 1536381540,
“origin”: “KLAX”,
“destination”: “KJFK”,
“aircrafttype”: “B752”,
“meal_service”: “Business: Dinner / Economy: Dinner”,
“seats_cabin_first”: 0,
“seats_cabin_business”: 16,
“seats_cabin_coach”: 152
}, {
“ident”: “VIR2906”,
“actual_ident”: “DAL1594”,
“departuretime”: 1536361800,
“arrivaltime”: 1536381540,
“origin”: “KLAX”,
“destination”: “KJFK”,
“aircrafttype”: “B752”,
“meal_service”: “Business: Dinner / Economy: Dinner”,
“seats_cabin_first”: 0,
“seats_cabin_business”: 16,
“seats_cabin_coach”: 152
}, {
“ident”: “AMX3297”,
“actual_ident”: “DAL1594”,
“departuretime”: 1536361800,
“arrivaltime”: 1536381540,
“origin”: “KLAX”,
“destination”: “KJFK”,
“aircrafttype”: “B752”,
“meal_service”: “”,
“seats_cabin_first”: 0,
“seats_cabin_business”: 16,
“seats_cabin_coach”: 152
}, {
“ident”: “VOZ6431”,
“actual_ident”: “DAL1594”,
“departuretime”: 1536361800,
“arrivaltime”: 1536381540,
“origin”: “KLAX”,
“destination”: “KJFK”,
“aircrafttype”: “B752”,
“meal_service”: “Business: Dinner / Economy: Dinner”,
“seats_cabin_first”: 0,
“seats_cabin_business”: 16,
“seats_cabin_coach”: 152
}]
}
}


#5

As I indicated in my previous reply, those are code share flights that are legitimately sold and ticketed by their partner airlines. You must modify your application to ignore flights with a non-blank “actual_ident” field if you do not wish to import codeshare flights.

Another option is to use the enhanced AirlineFlightSchedules function in FlightXML v3 beta, which adds an “exclude_codeshare” argument.