Hotel API Specification June 2012 > Hotel Search Example XML

Hotel Search Location Resolution Example XML

In this example, the user has started to type the word 'London'. They have only typed the first 3 letters so far, but the location resolution request can still be submitted, with the text they have typed so far. The response will be fast, so that the options can be presented to them even before they finish typing.

Note, the token attribute must be set to a valid token.

<ResolveLocationRequest token="*******" xmlns="http://www.travelfusion.com/xml/api/simple">

<text>Lon</text>

<maxOptions>10</maxOptions>

<language>EN,FI</language>

<showSubLocations>true</showSubLocations>

</ResolveLocationRequest>