Search Airport

The Search Airport provides the client with static data relating to airports. The API will provide airports held within the GTA system.

Example XML Search Airport request

The XML message below gives a sample of the expected elements needed by the API to execute a Search Airport Request.

<?xml version="1.0" encoding="UTF-8"?>
<Request>
  <Source>
<RequestorID Client="123456" EMailAddress="clientName@client.co.uk" Password="clientPassword" />
    <RequestorPreferences Language="en">
		  <RequestMode>SYNCHRONOUS</RequestMode>
    </RequestorPreferences>
  </Source>
	<RequestDetails>
		<SearchAirportRequest>
			<ItemDestination DestinationType="city" DestinationCode="LON" />
		  <AirportName><![CDATA[at]]></AirportName>
		</SearchAirportRequest>
	</RequestDetails>
</Request>

Source parameters

Please refer to the API Architecture document.

Search Airport parameters

A Search Airport request can contain optional attributes/parameters to filter the result returned.  The following lists the attributes/parameters that can be specified: -

Parameters

Description

ItemDestination

Mandatory. Used to return all items within the specified destination type (“area” or “city”) and destination code.

AirportName

Optional. If specified all airports containing the given characters will be returned.

Note: Airport names are not case sensitive.

AirportCode

Optional. If specified the details for the single code will be returned.

Example XML Search Airport response

The XML message below gives a sample of that given by the API in response to a Search Airport Request.

<?xml version="1.0" encoding="UTF-8"?>

<Response ResponseReference="200005">

       <ResponseDetails Language="en">

              <SearchAirportResponse>

                     <AirportDetails>

                  <AirportDetail>

                <City Code="LON"><![CDATA[London]]></City>

                <Airport Code="LGW"><![CDATA[London gatwick]]></Airport>

                  </AirportDetail>

                  <AirportDetail>

                <City Code="LON"><![CDATA[London]]></City>

                <Airport Code="LHR"><![CDATA[London heathrow]]></Airport>

                  </AirportDetail>

                     </AirportDetails>

              </SearchAirportResponse>

       </ResponseDetails>

</Response>

Search Airport response parameters

A Search Airport response will return the following for each item found for the request parameters: -

Parameter

Description

City

The city name.

In the language requested (if available).

 

Attribute

Description

 

Code

The unique city code held by GTA

 

Airport

The airport name.

 

Attribute

Description

 

Code

The unique city code held by GTA

Docs Navigation