v4

latestSwagger 2.0raw.githubusercontent.com2022-02-0721220.7 KB
location

Returns a list of airports and cities matching a given keyword.

get/reference-data/locations

Query parameters

subTypestring[] required

sub type of the location (AIRPORT and/or CITY)

keywordstring required

keyword that should represent the start of a word in a city or airport name or code. Supported charaters are: A-Za-z0-9./:-'()"

countryCodestring

Country code of the location using ISO 3166-1 alpha-2 code format (e.g. US).

page[limit]integer

maximum items in one page

page[offset]integer

start index of the requested page

sort'analytics.travelers.score'

defines on which attribute the sorting will be done:

  • analytics.travelers.score - sort by the number of travelers by airport or city, the airports and cities with the highest traffic are on top of the results
view'LIGHT' | 'FULL'

select the level of information of the reply:

  • LIGHT - Gives only the IATACode, name, detailedName, cityName and countryName
  • FULL - Adds on top of the LIGHT information the timeZoneOffset, geocode, detailed address and travelers.score default option is FULL

Response

Successful Operation

All 2 operations