routes

Fetch Routes Path

Fetch and cache route paths from a hotel to a POI, storing in conversation cache. Returns encoded polylines with travel time and distance metadata.

Direction: hotel → POI (user is staying at hotel, traveling to POI)

Args: request: Route path request with conversation ID, tool call ID, result index, origin (hotel), and destination (POI) db: Database session current_user: Validated user info

Returns: RoutesPathResponse with routes for each travel mode

Raises: HTTPException: 403 if unauthorized, 404 if not found

post/routes/path

Request body

conversation_idstring required

UUID of the conversation

tool_call_idstring required

Tool call ID that generated this hotel

result_indexinteger required

Result index of the hotel in the tool result

poi_namestring nullable

Optional POI name for organizing routes

Response

Successful Response

routesobject required

Map of Google travel mode to route info: {WALK, BICYCLE, DRIVE, TRANSIT}

Changes