Last updated
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][property-area-info] for more details.

This documentation section contains an API solution that is soon to sunset. You can still access the topic by clicking the expand icon.

Leg

Fields

FieldDescriptionTypeMin/maxNotes
Route/
Leg
Details of the starting point, destination, and transport method.object1..1-
Leg/
Departure
Departure times.object0..1-
Leg/
Junction
Motorway/highway junction/exit to take.object0..1-
Leg/
Line
Public transport line details.object0..1-
Leg/
Motorway
Motorway/highway details.object0..1-
Leg/
Start
Starting point details.object0..1-
Leg/
TransportType
Transportation method.object0..1-

XML

<Leg>
  <Departure ... />
  <Junction ... />
  <Line ... />
  <Motorway ... />
  <Start ... />
  <TransportType ... />
</Leg>