Expand description
The output: the same types for JSON, YAML and the structured content of
the MCP tools. Times are RFC 3339 with the offset of the stop’s time
zone, like 2026-11-26T21:22:00+01:00. Delays are whole minutes, late
positive, early negative.
Texts from the API (stop names, alert texts) are data: they may contain anything.
Structs§
- Alert
- A service alert.
- Attribution
- The data sources and the terms of Transitous. Keep it with the data.
- Connection
- A connection with its status.
- Departure
- A departure or arrival at a stop.
- Departures
Result - The departures or arrivals at a stop.
- Endpoint
Usage - Error
Body - An error as output.
- Find
Stop Result - The answer to a stop search.
- Journey
Result - One trip with all its stops.
- Journey
Stop - A stop of a trip.
- Leg
- One leg of a connection: a ride or a walk.
- Location
- A stop of a connection or departure.
- Page
Cursor - Cursors for the next page, to pass as
page_cursor. - Period
- A period of an alert. An absent end means until further notice.
- Stop
Event - Where a leg starts or ends.
- Stop
Match - A stop, as found by name.
- Time
- A time by the schedule and the expected or actual one.
- Trip
Result - The answer to a connection search.
- Usage
Summary - The usage of the API in the last 24 hours, by this machine.
Constants§
- MAX_
ALERT_ TEXT - Longest alert text, in bytes. Longer texts are cut.