Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

GET /locations method

This method is used:

  • To get a full list of locations (countries/cities) to be able to search for accommodation in the desired location.
  • To use the above mentioned method to get citizenship of tourists.

It is possible to get to both cities and countries.

When searching for a country/city on the website with the autocomplete, it is sufficient to use the following parameters:

  • pattern – e.g., specify at least 3 symbols of the searched location;
  • limitCities – e.g., 10 (to receive 10 first results, if any);
  • productType = ACCOMMODATION (for hotels’ search).

In order to get a full list of countries, it is necessary to enter -1 into “limitCountries” parameter.

  • No labels