Flight XML2.Airline Flight Schedules Airline problem


#1

Hello.
I’m using Flight XML2.Airline Flight Schedules, passing both Airline that FlightNo but the result does not consider the filter ‘Airline’.

Can anyone tell me how to fix it?

thank very much


#2

The ‘airline’ parameter is case sensitive, so using ‘Airline’ does not filter the results when calling the AirlineFlightSchedules function.

The other thing to consider is that codeshare flights are included in this result set, so you will have to check the value in ident against the value in ‘actual_ident’ if you want to filter out the codeshare flights (or just check the first 3 characters of ident against your desired fleet ICAO code).

Here’s a couple JSON examples (below) you can use to validate this from your browser (results limited to 45 records each using howMany parameter).

This first query filters properly (returns maximum 45 records):
http://flightxml.flightaware.com/json/FlightXML2/AirlineFlightSchedules?airline=JBU&flightno=101&startDate=1384053582&endDate=1384485480&howMany=45

This second query does not filter properly due to improper case on airline parameter (returns maximum 45 records)
http://flightxml.flightaware.com/json/FlightXML2/AirlineFlightSchedules?Airline=JBU&flightno=101&startDate=1384053582&endDate=1384485480&howMany=45

I hope this example helps.

Best Regards,
Jason Cook


#3

Grazie mille!!