Skip to main content

Module model

Module model 

Source
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.
DeparturesResult
The departures or arrivals at a stop.
EndpointUsage
ErrorBody
An error as output.
FindStopResult
The answer to a stop search.
JourneyResult
One trip with all its stops.
JourneyStop
A stop of a trip.
Leg
One leg of a connection: a ride or a walk.
Location
A stop of a connection or departure.
PageCursor
Cursors for the next page, to pass as page_cursor.
Period
A period of an alert. An absent end means until further notice.
StopEvent
Where a leg starts or ends.
StopMatch
A stop, as found by name.
Time
A time by the schedule and the expected or actual one.
TripResult
The answer to a connection search.
UsageSummary
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.