Plan hotel stays for an itinerary
plan_staysPlan hotel stays for each India trip stop by calculating check-in/check-out dates, searching nearby hotels, ranking options by nightly price and drive time, and returning leave-by times and warnings.
Instructions
Plans where to stay for each stop of a trip in India. Each stay is an arrival (place + time) and the next departure (place + time); places are lat+lng, station code, IATA code or place name, so train and flight times from any source can be passed in. For every stay it works out check-in/check-out dates (early-morning arrivals book the previous night), searches hotels near the arrival point and, if elsewhere, the departure point, and ranks them by nightly price plus drive time from arrival and to departure (valued at value_of_time_inr_per_hour). Returns candidates with leave-by times that include a check-in buffer for trains or flights, IRCTC retiring-room options for 3–48 h stays at stations, and warnings for late arrivals, early departures and same-day stays. Does not book.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stays | Yes | One entry per stop, in trip order. | |
| adults | No | Guests in the room; searches are for one room. | |
| min_stars | No | ||
| radius_km | No | Hotel search radius around each point. | |
| candidates | No | Hotels to return per stay. | |
| max_price_inr | No | Maximum nightly price in INR. | |
| value_of_time_inr_per_hour | No | How much an hour of transfer time is worth, to trade travel time against price (0 = price only). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| stays | Yes |