Connections from A to B
transitous_tripPlan or check a route between two stops or places, returning connections with realtime status, delays, cancellations, transfers, and legs; use arrive_by to find arrivals before a time.
Instructions
Searches connections between two stops or places, each with departure, arrival, duration, transfers, its legs (with trip_id) and a status: ok, delayed, cancelled, unreachable (a transfer is missed or the first ride has left) or no_realtime, with the reasons. With arrive_by, the connections arriving last before time, and earlier ones to switch to. Use it to plan or check a route; for one stop's departures use transitous_departures, for one ride with all stops transitous_journey. page_cursor.earlier and later page through more. Counts against the limit of 20 requests per minute (answer rate_limited with retry_after_seconds); each call is also one of the plan requests of the daily limit (default 720, answer daily_limit). Answers are cached for 60 seconds; ask every few minutes at most for the same trip.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"to": "<to>"
},
"name": "transitous_trip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Where to, like `from`. | |
| from | Yes | Where from: a stop ID, a stop name that fits one stop, or `LAT,LON`. | |
| time | No | Depart at this time, or arrive by it with `arrive_by`: RFC 3339 with an offset, or HH:MM today or a local time like 2026-11-27T07:50 at the origin, or at the destination with `arrive_by`. Default now. | |
| count | No | How many connections to ask for, up to 20. Default 5. Transitous can return more; all are returned, so the page cursors skip none. | |
| modes | No | Only these transit modes, like `["rail", "subway"]`. | |
| arrive_by | No | Arrive by `time`. The connections arriving last before it come with earlier ones, to switch to. | |
| page_cursor | No | The page before or after: `page_cursor.earlier` or `later` of the previous result, with the same other arguments. | |
| max_transfers | No | The most transfers, like 0 for direct connections only. Default: no limit. | |
| realtime_routing | No | Route on the realtime timetable: cancelled rides and missed transfers then drop out instead of being reported. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| warnings | Yes | ||
| attribution | Yes | ||
| connections | Yes | Sorted by departure. | |
| page_cursor | Yes |