Open
GraphQL
Objects
Object types are the building blocks of a schema. Each one defines a set of fields you can query, and fields can return scalars or other object types. Learn more
AuthorityAn organization that is responsible for a set of lines, for example a public transport authority.
AuthorityConnectionA page of authorities.
AuthorityEdgeAn authority in a page, with the cursor that points at it.
BookingArrangementHow a flexible service is booked.
The data comes from the flexible service properties of the service journey, so it is the same at every stop of that journey.
It is null for a service that is not flexible.
BrandingThe branding of a line. Only
id, name and url have source data.
The fields shortName, description and image are part of the schema but are always null.DatedServiceJourneyA service journey on one operating day.
It can differ from the plan, for example by a cancellation, and it can link to the journeys that replace it.
DatedServiceJourneyConnectionA page of dated service journeys. Unlike other connections, it has no
nodes field.DatedServiceJourneyEdgeA dated service journey in a page, with the cursor that points at it.
DestinationDisplayThe text that a vehicle shows to tell passengers where it is going.
EstimatedCallOne call of a service journey at a quay on one operating day, with real-time data merged in where it exists.
Without real-time data, the expected times equal the aimed times.
GroupOfLinesA named group of lines.
GroupOfLinesConnectionA page of groups of lines.
GroupOfLinesEdgeA group of lines in a page, with the cursor that points at it.
JourneyPatternThe ordered list of stops that service journeys follow. Many journeys can share one journey pattern.
JourneyPatternConnectionA page of journey patterns.
JourneyPatternEdgeA journey pattern in a page, with the cursor that points at it.
KeyValueOne
Key and Value pair from the key list of an entity, as the data producer wrote it.LineA group of routes that the public knows by one name or number, for example a bus route.
Regular lines and flexible lines both use this type.
LineConnectionA page of lines.
LineEdgeA line in a page, with the cursor that points at it.
MultilingualStringText with the language it is written in.
NoticeA message about a line, a journey, or one stop of a journey, for example a note about a change in service.
OperatorA company that runs journeys.
OperatorConnectionA page of operators.
OperatorEdgeAn operator in a page, with the cursor that points at it.
PageInfoInformation about one page of a connection. Paging goes forward only:
pass
endCursor as after in the next request.PointsOnLinkA line on the map, in the form OTP serves it.
PresentationThe colors of a line, as given in the source data.
Each color is six hexadecimal digits without a leading
#, for example 76A300.PtSituationElementA message to passengers about something that affects the service, such as a closed stop or a line that does not run.
It comes from the SIRI-SX feed, which the engine reads from the real-time database every half minute.
A situation that has ended (its progress is
closed) or that has no text at all is not returned.QuayA place at a stop place where passengers board or alight, for example a platform or a bus stand.
QuayAtDistanceA quay and its distance from the point of a radius search.
QuayConnectionA page of quays.
QuayEdgeA quay in a page, with the cursor that points at it.
ReplacedByRelationA link to a dated service journey that replaces another one.
ReplacementForRelationA link to a dated service journey that another one replaces.
ServiceJourneyA scheduled trip that follows a journey pattern. The dates on which it runs come from its calendar.
ServiceJourneyConnectionA page of service journeys.
ServiceJourneyEdgeA service journey in a page, with the cursor that points at it.
StopPlaceA place where passengers start, end or change a journey, for example a station or a bus stop.
A stop place groups one or more quays.
StopPlaceConnectionA page of stop places.
StopPlaceEdgeA stop place in a page, with the cursor that points at it.
TariffZoneAn area that is used to set fares.
TimeAndDayOffsetA time of day, and the number of days after the operating day on which that time falls.
TimetabledPassingTimeThe scheduled arrival and departure of a service journey at one stop.
These times are the plan. They do not include real-time changes.
ValidityPeriodA period of time. A bound that is null is unbounded.
infoLinkA link to more information about a situation.
Did you find what you were looking for?