Decode Sample (Spanish)
The following XML sample illustrates some of the categories that can be decoded by the Travel Codes Translator eBL. There is also a sample in English.
Request
Explanation |
Code |
Begins the Travel Codes Translator eBL request. Also specifies the desired language of the response. If no language is specified, the response defaults to US English. |
<Decode xmlns="http://webservices.galileo.com/TravelCodesTranslator/"> <DecodeInput>
|
Specifies the category and the code within the category to be translated. |
|
Ends the Travel Codes Translator eBL request. |
</DecodeInput> </Decode> |
Response
Explanation |
Code |
Begins the Travel Codes Translator eBL response. |
<DecodeResponse xmlns="http://webservices.galileo.com/TravelCodesTranslator/"> <DecodeResult>
|
Spanish was requested in the response. However, only categories that have translations in Spanish display in Spanish. If no translation for the desired language is present, the response displays in US English. Lists the translation for each code listed in the request. |
|
CityAirport responses return all airports within a specified metropolitan area, in this example, New York City "nyc". |
<CityAirport AirportCode="TSS" AirportType="8" CityCode="NYC" CityName="New York" CountryCode="US" StateProvinceCode="NY">East 34th St Hlpt</CityAirport>
|
Ends the Travel Codes Translator eBL response. |
</DecodeResult> </DecodeResponse> |