Encode Sample
The following XML sample illustrates the three types of information that the Travel Codes Translator eBL can encode. This request uses the Words Beginning With search feature.
Note: Category names (such as MetropolitanArea) and attributes (such as Match) are case sensitive.
Request
For an unnannotated version of the request, see Unnannotated Encode Sample.
Explanation |
Code |
Begins the Travel Codes Translator eBL request. Also specifies the desired language for the response. |
<Encode xmlns="http://webservices.galileo.com/TravelCodesTranslator/"> <EncodeInput>
|
Any of the following three searches (or a combination of all three) can be requested in a single call. Requests information for all cities beginning with the letters birming. There are two types of searches available. |
|
Requests information for all airports beginning with the letters charles. |
|
Requests information for all metropolitan areas beginning with the letters chicago. |
|
Requests codes for passenger service requests (SSRs) with wheelchair in the request. |
|
Requests code the for the US state or Canadian province. |
|
Requests the city/airport code for locations where the city and airport share a code. |
|
Ends the Travel Codes Translator eBL request. |
</EncodeInput> </Encode> |
Response
Explanation |
Code |
Begins the Travel Codes Translator eBL response. |
<EncodeResponse xmlns="http://webservices.galileo.com/TravelCodesTranslator/">
|
As two cities match birming, information about both cities is returned. |
|
|
|
As two airports match charles, information about both airports is returned. |
|
|
|
Only one metropolitan area matches chicago. Note: The asterisk in the metropolitan area code indicates that the code is for a metro area, rather than an individual airport. The asterisk is especially important when the airport code matches the metro code. For example, SFO is the airport code for San Francisco International Airport, but SFO* is also the metro area code for San Francisco and is used when looking for flights out of any airport in San Francisco. |
|
Returns the Passenger Service Request (SSR) code for |
|
Returns to the two-letter US state or Canadian province code. |
|
Returns the city/airport code for locations where the city and airport share a code. |
|
Ends the Travel Codes Translator eBL response. |
</EncodeResponse> |