Get Direct Flights
Retrieve a listing detailing to what destination airports, and on which weekdays direct flights can be taken from an origin airport.
null: unconfirmedtrue: confirmed direct connectionfalse: confirmed no direct connection
Request
Query parameters
| Name | Type | Description |
|---|---|---|
| from required | string | IATA code of the origin airport, pattern: /^[A-Z]{3}$/ |
Responses
-
Successful response with a list of destination airport codes with direct flights arriving from origin
Body
Property path Type Description directFlights optional objectContainer for direct flight information per weekday per airport
directFlights.^[A-Z]{3}$ optional objectIATA code of the destination airport mapping to direct flight information
….^[A-Z]{3}$.airport objectDestination airport
….^[A-Z]{3}$.airport.code stringMost relevant code used to designate this airport
….^[A-Z]{3}$.airport.name stringName of the airport in English
….^[A-Z]{3}$.airport.metroCode optional stringIf applicable, optional IATA code of the metropolis the airport is in, pattern: /^[A-Z]{3}$/….^[A-Z]{3}$.airport.city stringCommon name, in English, of the city the airport is located in
….^[A-Z]{3}$.airport.country stringUK English name of the country the airport is in
….^[A-Z]{3}$.weekdays arrayList with boolean elements, one for each day of the week
Example: [false, false, true, null, null, true, true]Example
{ "directFlights": { "HND": { "airport": { "city": "Tokyo", "code": "HND", "country": "Japan", "metroCode": "TYO", "name": "Tokyo Haneda International Airport" }, "weekdays": [ true, null, true, true, null, null, null ] }, "JFK": { "airport": { "city": "New York City", "code": "JFK", "country": "United States of America", "metroCode": "NYC", "name": "John F Kennedy International Airport" }, "weekdays": [ null, true, true, true, true, true, true ] } } }