/
GETTING THE LIST OF COUNTRIES AND CITIES
GETTING THE LIST OF COUNTRIES AND CITIES
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.