6. GetAirportTree

Version 11.1 by Giorgi Mdivnishvili on 2023/12/26 15:02

Method Description

GetAirportTree method is used to retrieve Airport data by countries and cities.

There is hierarchy like Country>City>airport.  Parent for the City is COuntryCOde, parent for the aiport is cityUID.

EndpointURL - [GET]

Request Parameters

None

Request Body

none

Response Body

[
  {
   "type": "string",
   "parent": "string",
   "label": "string",
   "subLabel": "string",
   "value": "string",
   "tag": "string"
  }
]

example

  {
       "type": "country",
       "label": "United Arab Emirates",
       "value": "AE",
       "tag": "United Arab Emirates"
    },
    {
       "type": "city",
       "parent": "AE",
       "label": "Abu Dhabi",
       "value": "28c794fe-3c7e-4da2-ba93-f24bd3d4730d",
       "tag": "Abu Dhabi United Arab Emirates"
    },
    {
       "type": "airport",
       "parent": "28c794fe-3c7e-4da2-ba93-f24bd3d4730d",
       "label": "Abu Dhabi Intl Airport",
       "subLabel": "Abu Dhabi, United Arab Emirates",
       "value": "AUH",
       "tag": "AUH Abu Dhabi Intl Airport Abu Dhabi, United Arab Emirates Abu Dhabi United Arab Emirates"
    },
    {
       "type": "city",
       "parent": "AE",
       "label": "Dubai",
       "value": "f5185fa3-3f56-44ed-bf6b-80386a33caa2",
       "tag": "Dubai United Arab Emirates"
    },
    {
       "type": "airport",
       "parent": "f5185fa3-3f56-44ed-bf6b-80386a33caa2",
       "label": "Dubai Al Maktoum Intl Airport",
       "subLabel": "Dubai, United Arab Emirates",
       "value": "DWC",
       "tag": "DWC Dubai Al Maktoum Intl Airport Dubai, United Arab Emirates Dubai United Arab Emirates"
    },
    {
       "type": "airport",
       "parent": "f5185fa3-3f56-44ed-bf6b-80386a33caa2",
       "label": "Dubai Intl Airport",
       "subLabel": "Dubai, United Arab Emirates",
       "value": "DXB",
       "tag": "DXB Dubai Intl Airport Dubai, United Arab Emirates Dubai United Arab Emirates"
    },

Schema

Success

[TreeNode{

typestring
nullable: true
parentstring
nullable: true
labelstring
nullable: true
subLabelstring
nullable: true
valuestring
nullable: true
tagstring
nullable: true

}]

Definitions

type: Country or City or Airport
parent: Value for the city is the parent for the airport
label: Name of the Country/City/Airport
subLabel: in type of Airport - given data in format "City, Country"
value: Value for the Airport is the code of airport, in case of city is CityUID
tag: Full naming of the airport