Last edit: Mar 08, 2023.
The functionality supported by `AreaInfo` and `HotelInfo > RelativePositions` are soon to sunset
Booking.com is deprecating the functionality of specifying/retrieving nearby attractions and the property's relative position information using AreaInfo
and HotelInfo > RelativePositions
as of March 15, 2023, and will sunset on June 30, 2023. Booking.com automatically generates the nearby places and the property's relative position information. Please see the deprecation policy documentation for more details.
Attraction
Fields
Field | Description | Type | Min/max | Notes |
---|---|---|---|---|
Attractions/Attraction | Details of an attraction. | object | 0..* | - |
Attraction /@AttractionCategoryCode | The Attraction Category Code. | ACC | 1..1 | - |
Attraction /@AttractionName | The attraction name (in @LanguageCode ). | string | 1..1 | - |
Attraction /@Distance | Distance from property to attraction (in @DistanceUnit ). | float | 1..1 | - |
Attraction /@DistanceUnit | The measurement unit for @Distance . | enum | 0..1 | Accepts: meters , kilometers , feet , miles . Default: meters |
Attraction /@LanguageCode | The Booking.com Language Code used for the attraction information. | BCL | 0..1 | Default: en |
XML
<Attraction AttractionCategoryCode="29" AttractionName="Morning market" Distance="1.2" DistanceUnit="miles" LanguageCode="en"/> <Attraction AttractionCategoryCode="41" AttractionName="Sushi restaurant" Distance="3"/>