plan_journey
Plan a bus journey from a start stop to a destination, arriving by a specified time. Supports direct routes or one change, with optional day filter.
Instructions
Plan a journey from stop_a to stop_b arriving by a given time. Supports direct routes and single changes.
Parameters: stop_a: Starting stop (NaPTAN code or name). stop_b: Destination stop (NaPTAN code or name). arrive_by: Target arrival time (HH:MM, 24h format). day: Optional day filter: mon, tue, wed, thu, fri, sat, sun. Defaults to today. max_changes: Maximum number of bus changes (0 = direct only, 1 = one change). Default 1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | ||
| stop_a | Yes | ||
| stop_b | Yes | ||
| arrive_by | Yes | ||
| max_changes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |