Open
GraphQL
Queries
Queries are read-only operations that fetch data. You request exactly the fields you need, and can traverse related data in a single request. Learn more
tripInput type for executing a travel search for a trip between two locations. Returns trip patterns describing suggested alternatives for the trip.
tripPatternByLegIdsGet a trip pattern for the given legs, with realtime changes applied.
refetchTripPatternGet an updated version of a trip pattern with realtime changes applied.
viaTripVia trip search. Find trip patterns traveling via one or more intermediate (via) locations.
stopPlaceGet a single stopPlace based on its id)
stopPlacesGet all stopPlaces
stopPlacesByBboxGet all stop places within the specified bounding box
quayGet a single quay based on its id)
quaysGet all quays
quaysByBboxGet all quays within the specified bounding box
quaysByRadiusGet all quays within the specified walking radius from a location. There are no maximum limits for the input parameters, but the query will timeout and return if the parameters are too high.
nearestGet all places (quays, stop places, car parks etc. with coordinates) within the specified radius from a location. The returned type has two fields place and distance. The search is done by walking so the distance is according to the network of walkables.
authorityGet an authority by ID
authoritiesGet all authorities
operatorGet a operator by ID
operatorsGet all operators
lineGet a single line based on its id
linesGet all lines
groupOfLinesGet a single group of lines based on its id
groupsOfLinesGet all groups of lines
serviceJourneyGet a single service journey based on its id
serviceJourneysGet all service journeys
bikeRentalStationsGet all bike rental stations
bikeRentalStationGet all bike rental stations
bikeRentalStationsByBboxGet all bike rental stations within the specified bounding box.
bikeParkGet a single bike park based on its id
bikeParksGet all bike parks
routingParametersGet default routing parameters.
situationsGet all active situations.
situationGet a single situation based on its situationNumber
legRefetch a single transit leg based on its id
serverInfoGet OTP deployment information. This is only useful for developers of OTP itself not regular API users.
transitInfoGet information about the transit data available in the system.
datedServiceJourneyGet a single dated service journey based on its id
datedServiceJourneysGet all dated service journeys, matching the filters
Did you find what you were looking for?