6. GetAirportTree
Version 15.1 by Giorgi Mdivnishvili on 2024/04/10 09:45
Contents
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
Request Body
none
Response Body
[
{
"type": "string",
"parent": "string",
"label": "string",
"subLabel": "string",
"value": "string",
"tag": "string"
}
]
{
"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"
},
"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
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
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
Country Object
This object represents a country.
Field | Type | Description |
---|---|---|
type | string | The type of the object. In this case, it's always "country". |
label | string | The name of the country. |
value | string | The ISO code of the country. |
tag | string | The name of the country. |
City Object
This object represents a city.
Field | Type | Description |
---|---|---|
type | string | The type of the object. In this case, it's always "city". |
parent | string | The ISO code of the parent country. |
label | string | The name of the city. |
value | string | The UUID of the city. |
tag | string | A string containing the city name and country name, separated by a space. |
Airport Object
This object represents an airport.
Field | Type | Description |
---|---|---|
type | string | The type of the object. In this case, it's always "airport". |
parent | string | The UUID of the parent city. |
label | string | The name of the airport. |
subLabel | string | The location of the airport, usually in the format "City, Country". |
value | string | The IATA code of the airport. |
tag | string | A string containing the IATA code, airport name, city, and country, separated by spaces. |