Tfnsw Trip Plan
tfnsw_trip_planPlan a public-transport journey anywhere in New South Wales — door to door, multi-leg, with every change, walking leg, line and departure/arrival time. AUTHORITATIVE for "how do I get from A to B on Sydney transport"; uses the same engine as the official TfNSW trip planner.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| when | No | Optional ISO date-time of departure (e.g. "2026-09-18T08:30"). Defaults to now. | |
| origin | Yes | Origin — a stop id (e.g. "200060"), or a "longitude:latitude:EPSG:4326" coordinate. | |
| _apiKey | No | Transport for NSW API key. Free from https://opendata.transport.nsw.gov.au/. | |
| arrive_by | No | Treat `when` as the desired ARRIVAL time instead of departure. | |
| destination | Yes | Destination, in the same form as origin. | |
| origin_type | No | 'stop' (default), 'coord', 'any' — how to read `origin`. | |
| destination_type | No | 'stop' (default), 'coord', 'any'. |