Encode
The Travel Codes Translator eBL can translate the human-readable name of a travel term into the code necessary for CRS processes; this translation is called encoding. The Travel Codes Translator eBL can encode airport, city, and metropolitan area information.
For cities, encode returns the city code, country code, and state or province code, if applicable. For airports, encode returns the city code, city name, airport code, country code, and state or province code, if applicable. For metropolitan areas, encode returns the metropolitan area code and the country code.
Search for Codes
When encoding information, searches can include partial-name searches. There are two types of searches available:
-
Words beginning When a string is entered for an encode request, the search looks for words beginning with the string that you entered. For example, if a search is performed for city codes with the letters birming, Birmingham, Alabama and Birmingham, UK are returned in the response. –
-
Words containing If a percent sign is entered at the beginning of the string, the search looks for words containing the string entered, no matter where the string occurs in the word. For example, if
For XML examples of Encode, see the Samples Overview.
Note: The August 2003 update to GWS includes the addition of three new encode functions to Travel Codes Translator eBL:
-
<CityAirport>
-
<StateProvince>
-
<PassengerServiceRequest>