5. GetHotels
Version 21.1 by Giorgi Mdivnishvili on 2024/04/11 13:30
Contents
Method Description
The GetHotels method is used to retrieve a list of hotels by country.
In order to be able to retrieve a list of hotels in United Arab Emirates, for example, you need to pass the country code "AE" as a parameter.
This method facilitates the retrieval of essential hotel data, which can be beneficial for subsequent search parameters. The following details are available:
- Hotel ID: A unique identifier for the hotel.
- Hotel Name: The name of the hotel.
- Hotel Classification: The hotel's classification on a scale (e.g., "4" for 4-star).
- City ID: Unique identifier for the city where the hotel is located.
- Country Code: The ISO 3166-1 alpha-2 country code for the hotel's location.
- District ID: Unique identifier for the district where the hotel is located.
- City Name: Name of the city where the hotel is located.
- District Name: Name of the district where the hotel is located.
- Hotel Type: Type of hotel (e.g., "CityHotel", "BeachHotel").
- Latitude: Geographic latitude of the hotel.
- Longitude: Geographic longitude of the hotel.
- Alcohol Availability: Indicates whether alcohol is served at the hotel.
- Wi-Fi Availability: Indicates whether free Wi-Fi is available.
- Metro/Subway Proximity: Indicates the proximity of a metro/subway station to the hotel.
- Swimming Pool Availability: Indicates whether the hotel has a swimming pool.
- Shopping Mall Proximity: Indicates the proximity of a shopping mall to the hotel.
Endpoint URL - [GET]
Request Parameters
Request Body
none
Response Body
[
{
"hotelCode": "string",
"hotelName": "string",
"hotelClass": "string",
"cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"countryCode": "string",
"countryName": "string",
"districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"cityName": "string",
"districtName": "string",
"hotelType": "CityHotel",
"latitude": "string",
"longitude": "string",
"hasAlcohol": true,
"hasFreeWifi": true,
"hasMetro": true,
"hasPool": true,
"hasMall": true
}
]
{
"hotelCode": "string",
"hotelName": "string",
"hotelClass": "string",
"cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"countryCode": "string",
"countryName": "string",
"districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"cityName": "string",
"districtName": "string",
"hotelType": "CityHotel",
"latitude": "string",
"longitude": "string",
"hasAlcohol": true,
"hasFreeWifi": true,
"hasMetro": true,
"hasPool": true,
"hasMall": true
}
]
example
{
"hotelCode": "cfbca5b5-4090-4bcd-805a-463d83423b86",
"hotelName": "Ramada Abu Dhabi Corniche",
"hotelClass": "4",
"cityUID": "28c794fe-3c7e-4da2-ba93-f24bd3d4730d",
"countryCode": "AE",
"districtUID": "ee402984-6d1d-4fcf-915d-f31b14fa8b0f",
"cityName": "Abu Dhabi",
"districtName": "Abu Dhabi",
"hotelType": "CityHotel",
"latitude": "24.503759",
"longitude": "54.374577",
"hasAlcohol": false,
"hasFreeWifi": true,
"hasMetro": false,
"hasPool": true,
"hasMall": false
},
{
"hotelCode": "c64b6082-2337-4519-8c33-4bcdef76b16b",
"hotelName": "Emirates Palace Mandarin Oriental, Abu Dhabi",
"hotelClass": "5",
"cityUID": "28c794fe-3c7e-4da2-ba93-f24bd3d4730d",
"countryCode": "AE",
"districtUID": "ee402984-6d1d-4fcf-915d-f31b14fa8b0f",
"cityName": "Abu Dhabi",
"districtName": "Abu Dhabi",
"hotelType": "BeachHotel",
"latitude": "24.461556",
"longitude": "54.317404",
"hasAlcohol": false,
"hasFreeWifi": true,
"hasMetro": false,
"hasPool": true,
"hasMall": false
},
"hotelCode": "cfbca5b5-4090-4bcd-805a-463d83423b86",
"hotelName": "Ramada Abu Dhabi Corniche",
"hotelClass": "4",
"cityUID": "28c794fe-3c7e-4da2-ba93-f24bd3d4730d",
"countryCode": "AE",
"districtUID": "ee402984-6d1d-4fcf-915d-f31b14fa8b0f",
"cityName": "Abu Dhabi",
"districtName": "Abu Dhabi",
"hotelType": "CityHotel",
"latitude": "24.503759",
"longitude": "54.374577",
"hasAlcohol": false,
"hasFreeWifi": true,
"hasMetro": false,
"hasPool": true,
"hasMall": false
},
{
"hotelCode": "c64b6082-2337-4519-8c33-4bcdef76b16b",
"hotelName": "Emirates Palace Mandarin Oriental, Abu Dhabi",
"hotelClass": "5",
"cityUID": "28c794fe-3c7e-4da2-ba93-f24bd3d4730d",
"countryCode": "AE",
"districtUID": "ee402984-6d1d-4fcf-915d-f31b14fa8b0f",
"cityName": "Abu Dhabi",
"districtName": "Abu Dhabi",
"hotelType": "BeachHotel",
"latitude": "24.461556",
"longitude": "54.317404",
"hasAlcohol": false,
"hasFreeWifi": true,
"hasMetro": false,
"hasPool": true,
"hasMall": false
},
Schema
Definitions
Field Name | Data Type | Description |
---|---|---|
hotelCode | String | Unique identifier for the hotel. |
hotelName | String | The name of the hotel. |
hotelClass | String | Classification of the hotel on a scale (e.g., "4" for 4-star). |
cityUID | String | Unique identifier for the city where the hotel is located. |
countryCode | String | The ISO 3166-1 alpha-2 country code for the hotel's location. |
districtUID | String | Unique identifier for the district where the hotel is located. |
cityName | String | Name of the city where the hotel is located. |
districtName | String | Name of the district where the hotel is situated. |
hotelType | String | Type of hotel (e.g., "CityHotel", "BeachHotel"). |
latitude | String | Geographic latitude of the hotel. |
longitude | String | Geographic longitude of the hotel. |
hasAlcohol | Boolean | Indicates whether alcohol is served at the hotel. |
hasFreeWifi | Boolean | Indicates whether free Wi-Fi is available. |
hasMetro | Boolean | Indicates the proximity of a metro/subway station to the hotel. |
hasPool | Boolean | Indicates whether the hotel has a swimming pool. |
hasMall | Boolean | Indicates the proximity of a shopping mall to the hotel. |