Dynamic Packaging | Hotel Management
Hotel Object
{
"id": 12345,
"link": "hhhhhh",
"names": { "de": "Hotel Alpenblick" },
"externalid": "HOTEL_4711",
"bundle": "bbbbbb",
"centerlat": 47.7612,
"centerlng": 11.5601,
"icon": "hotel",
"geoType": 1,
"enabled": true
}A) Search hotels
Type-ahead search for hotels of your account by name. Hotels are markers in libraries of type Accommodation.
Response: array of Hotel.
Notes:
searchis required. Terms shorter than 3 characters return an empty list.At most 20 results are returned.
B) Hotels near a destination
Returns the hotels (icons hotel, bed_breakfast, apartment) within a 20 km square around the destination, searched in the libraries of your account including shared libraries.
Response: array of Hotel.
Errors: 404 Destination not found.
C) Destination for a hotel
Returns the destination nearest to the given hotel (searched within 100 km around the hotel). Use this to map a booked hotel to its destination before looking up outgoing routes.
Response: Destination.
Errors: 404 Hotel not found, 404 No destination found if there is no destination within 100 km.
Last updated

