Encode Sample with Wild Card
Encode can search for cities, airports, and metropolitan areas using a wild card, which is a percent sign (%). If no percent sign is used at the beginning of the text string, the search looks for words beginning with the string entered.
To use a wild card in a search, enter the percent sign at the beginning of the text string.
Wildcard Examples
-
A request of <City Match="%nver"/> finds the city codes of DEN (Denver, Colorado, US), INV (Inverness, GB), IVC (Invercargill, NZ), and IVR (Inverell, AU).
-
A request of <Airport Match="%arles"/> finds the airport codes of CDG (Charles De Gaulle Intl Arpt, FR), CHS (Charleston Intl Arpt, South Carolina, US), and LCH (Lake Charles Municipal, Louisiana, US).
-
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 with Wild Card 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>
|
Requests information for all cities containing the string lant. A wildcard search can also be used with <Airport Match> and <MetropolitanArea Match>. |
|
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/">
|
Four cities are found that contain the string lant. |
|
Ends the Travel Codes Translator eBL response. |
</EncodeResponse> |