6. GetAirportTree

Version 7.1 by Giorgi Mdivnishvili on 2023/12/26 11:34

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": "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"
    },
    {
       "type": "country",
       "label": "United Kingdom",
       "value": "GB",
       "tag": "United Kingdom"
    },

Schema

Success

[TreeNode{

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

}]