I want to create a autocomplete view for all Airlines with the name as shown on the website homepage. image attached. please let me know if there is any API for the same.
There is no auto-complete functionality built into FlightXML. You will need to keep a private database of the airline codes and names, and then perform searches against your database first.
This database could be populated using FlightXML 2 queries AllAirlines and AirlineInfo. Alternately the database could be populated from one of our subscription services or a different public resource.
Hi, Thanks for the reply and one more thing do you have any API which gives IATA codes for the airports?
The FlightXML 3 AirportInfo can return IATA as alternate_ident
when available.
Hi, Dogrock
we are still facing to pick proper API for Searching on basis of text entered. In your first reply, you suggested to create database and store all code.we might confuse here.so please elaborate more on this point.
You will need to compile a list of all results that you want to autocomplete on in your own database and do the autocomplete for each search based on your database of compiled airlines.
Which api to be hitted to get All content for input keyword “UAL” and “170”.i also attached screenshot.
please let me know …
You would need to use AeroAPI (formerly FlightXML) 2 Explorer. However, you would need to find the specific flightid for the flight that you are looking for.
Please let me know,when i provide input “ual” and “345”.now click on track button.
we get response like below:-
{
“FlightInfoExResult”: {
“next_offset”: -1,
“flights”: [
{
“faFlightID”: “UAL345-1527120761-fa-0000”,
“ident”: “UAL345”,
“aircrafttype”: “B763”,
“filed_ete”: “10:11:00”,
“filed_time”: 1527120761,
“filed_departuretime”: 1527770700,
“filed_airspeed_kts”: 411,
“filed_airspeed_mach”: “”,
“filed_altitude”: 0,
“route”: “”,
“actualdeparturetime”: 0,
“estimatedarrivaltime”: 1527807360,
“actualarrivaltime”: 0,
“diverted”: “”,
“origin”: “KIAD”,
“destination”: “PHNL”,
“originName”: “Washington Dulles Intl”,
“originCity”: “Washington, DC”,
“destinationName”: “Daniel K Inouye Intl”,
“destinationCity”: “Honolulu, HI”
},
{
“faFlightID”: “UAL345-1527138908-fa-0003”,
“ident”: “UAL345”,
“aircrafttype”: “B763”,
“filed_ete”: “10:11:00”,
“filed_time”: 1527138908,
“filed_departuretime”: 1527338700,
“filed_airspeed_kts”: 411,
“filed_airspeed_mach”: “”,
“filed_altitude”: 0,
“route”: “”,
“actualdeparturetime”: 0,
“estimatedarrivaltime”: 1527375360,
“actualarrivaltime”: 0,
“diverted”: “”,
“origin”: “KIAD”,
“destination”: “PHNL”,
“originName”: “Washington Dulles Intl”,
“originCity”: “Washington, DC”,
“destinationName”: “Daniel K Inouye Intl”,
“destinationCity”: “Honolulu, HI”
},
{
“faFlightID”: “UAL345-1527053138-airline-0128”,
“ident”: “UAL345”,
“aircrafttype”: “B763”,
“filed_ete”: “10:11:00”,
“filed_time”: 1527053138,
“filed_departuretime”: 1527252300,
“filed_airspeed_kts”: 411,
“filed_airspeed_mach”: “”,
“filed_altitude”: 0,
“route”: “”,
“actualdeparturetime”: 0,
“estimatedarrivaltime”: 1527288960,
“actualarrivaltime”: 0,
“diverted”: “”,
“origin”: “KIAD”,
“destination”: “PHNL”,
“originName”: “Washington Dulles Intl”,
“originCity”: “Washington, DC”,
“destinationName”: “Daniel K Inouye Intl”,
“destinationCity”: “Honolulu, HI”
},
{
“faFlightID”: “UAL345-1526966773-airline-0213”,
“ident”: “UAL345”,
“aircrafttype”: “B763”,
“filed_ete”: “10:08:00”,
“filed_time”: 1526966773,
“filed_departuretime”: 1527165900,
“filed_airspeed_kts”: 459,
“filed_airspeed_mach”: “”,
“filed_altitude”: 360,
“route”: “RNLDI4 OTTTO COLNS J134 STEVY LAYED J134 GBEES MOSEY JUDDI KK54K BQS KP63C KATLN KD69W BOJOL KU72O PARZZ RBL FATMO 3600N/13500W 3300N/14200W 3000N/14800W AUNTI R463 APACK MAGGI3”,
“actualdeparturetime”: 0,
“estimatedarrivaltime”: 1527202800,
“actualarrivaltime”: 0,
“diverted”: “”,
“origin”: “KIAD”,
“destination”: “PHNL”,
“originName”: “Washington Dulles Intl”,
“originCity”: “Washington, DC”,
“destinationName”: “Daniel K Inouye Intl”,
“destinationCity”: “Honolulu, HI”
},
{
“faFlightID”: “UAL345-1526880398-airline-0032”,
“ident”: “UAL345”,
“aircrafttype”: “B763”,
“filed_ete”: “09:36:00”,
“filed_time”: 1526880398,
“filed_departuretime”: 1527078900,
“filed_airspeed_kts”: 459,
“filed_airspeed_mach”: “”,
“filed_altitude”: 300,
“route”: “RNLDI4 OTTTO COLNS J134 STEVY LAYED J134 GBEES MOSEY JUDDI KK54K BQS KP63C KATLN KD69W BOJOL KU72O PARZZ RBL FATMO 3600N/13500W 3300N/14200W 3000N/14800W AUNTI R463 APACK MAGGI3”,
“actualdeparturetime”: 1527080262,
“estimatedarrivaltime”: 1527115080,
“actualarrivaltime”: 1527080262,
“diverted”: “”,
“origin”: “KIAD”,
“destination”: “PHNL”,
“originName”: “Washington Dulles Intl”,
“originCity”: “Washington, DC”,
“destinationName”: “Daniel K Inouye Intl”,
“destinationCity”: “Honolulu, HI”
},
{
“faFlightID”: “UAL345-1526534768-airline-0307”,
“ident”: “UAL345”,
“aircrafttype”: “B763”,
“filed_ete”: “10:00:00”,
“filed_time”: 1526534768,
“filed_departuretime”: 1526733300,
“filed_airspeed_kts”: 461,
“filed_airspeed_mach”: “”,
“filed_altitude”: 320,
“route”: “BUNZZ3 RAMAY Q72 HACKS J149 MECAN KG63O WORDY KK63I BACNN KP60C KD60A TEKMY KD60U RACER KU57O KU54M KROST OAK BEBOP R464 BAART R464 BARAZ R464 BOARD R464 BITTA MAGGI3”,
“actualdeparturetime”: 1526734175,
“estimatedarrivaltime”: 1526768160,
“actualarrivaltime”: 1526768160,
“diverted”: “”,
“origin”: “KIAD”,
“destination”: “PHNL”,
“originName”: “Washington Dulles Intl”,
“originCity”: “Washington, DC”,
“destinationName”: “Daniel K Inouye Intl”,
“destinationCity”: “Honolulu, HI”
},
{
“faFlightID”: “UAL345-1525929982-airline-0070:1”,
“ident”: “UAL345”,
“aircrafttype”: “B763”,
“filed_ete”: “10:01:00”,
“filed_time”: 1526131726,
“filed_departuretime”: 1526128500,
“filed_airspeed_kts”: 458,
“filed_airspeed_mach”: “”,
“filed_altitude”: 280,
“route”: “LDN268026 DACOS KI48O SPORT KK48K WESCO KK48G KSANG KK51A QUAIL KD57U RACER KU63Q WAATS Q124 BVL J154 BAM ENI ALCOA R463 ALLBE R463 ADOPE R463 APACK MAGGI3”,
“actualdeparturetime”: 1526130376,
“estimatedarrivaltime”: 1526166300,
“actualarrivaltime”: 1526165700,
“diverted”: “”,
“origin”: “KIAD”,
“destination”: “PHNL”,
“originName”: “Washington Dulles Intl”,
“originCity”: “Washington, DC”,
“destinationName”: “Daniel K Inouye Intl”,
“destinationCity”: “Honolulu, HI”
}
]
}
}
on which basis it pick up forth content and display them As a result.is there any time matching.
Please describe in details.
Hi,flightAware Staff
Please help us on some previous point.