Magidoc

QueryType
Object

Fields

#

agencies

Get all agencies

agency

Get a single agency based on agency ID, i.e. value of field gtfsId (ID format is FeedId:StopId )

alerts

[ Alert ]

Get all active alerts

bikePark

Get a single bike park based on its ID, i.e. value of field bikeParkId

bikeParks

Get all bike parks

bikeRentalStation

Get a single bike rental station based on its ID, i.e. value of field stationId

bikeRentalStations

Get all bike rental stations

canceledTrips

Get pages of canceled trips. Planned cancellations are not currently supported. Limiting the number of returned trips with either first or last is highly recommended since the number of returned trips can be really high when there is a strike affecting the transit services, for example. Follows the GraphQL Cursor Connections Specification .

cancelledTripTimes

Get canceled TripTimes.

carPark

Get a single car park based on its ID, i.e. value of field carParkId

carParks

Get all car parks

cluster

Get a single cluster based on its ID, i.e. value of field gtfsId

clusters

Get all clusters

departureRow

Get a single departure row based on its ID (ID format is FeedId:StopId:PatternId )

feeds

[ Feed ]

Get all available feeds

fuzzyTrip

Finds a trip matching the given parameters. This query type is useful if the id of a trip is not known, but other details uniquely identifying the trip are available from some source (e.g. MQTT vehicle positions).

leg

Try refetching the current state of a transit leg using its id. This fails when the underlying transit data (mostly IDs) has changed or are no longer available. Fare products cannot be refetched using this query.

nearest

Get all places (stops, stations, etc. with coordinates) within the specified radius from a location. The returned type is a Relay connection (see https://facebook.github.io/relay/graphql/connections.htm ). The placeAtDistance type has two fields: place and distance. The search is done by walking so the distance is according to the network of walkable streets and paths.

node

Fetches an object given its ID

pattern

Get a single pattern based on its ID, i.e. value of field code (format is FeedId:RouteId:DirectionId:PatternVariantNumber )

patterns

Get all patterns

plan

Plans an itinerary from point A to point B based on the given arguments

planConnection

Plan (itinerary) search that follows GraphQL Cursor Connections Specification .

rentalVehicle

Get a single rental vehicle based on its ID, i.e. value of field vehicleId

rentalVehicles

Get all rental vehicles

route

Get a single route based on its ID, i.e. value of field gtfsId (format is FeedId:RouteId )

routes

[ Route ]

Get all routes

serviceTimeRange

Get the time range for which the API has data available

station

Get a single station based on its ID, i.e. value of field gtfsId (format is FeedId:StopId )

stations

[ Stop ]

Get all stations

stop

Get a single stop based on its ID, i.e. value of field gtfsId (ID format is FeedId:StopId )

stops

[ Stop ]

Get all stops

stopsByBbox

[ Stop ]

Get all stops within the specified bounding box

stopsByRadius

Get all stops within the specified radius from a location. The returned type is a Relay connection (see https://facebook.github.io/relay/graphql/connections.htm ). The stopAtDistance type has two values: stop and distance.

ticketTypes

Return list of available ticket types

trip

Get a single trip based on its ID, i.e. value of field gtfsId (format is FeedId:TripId )

trips

[ Trip ]

Get all trips

vehicleParking

Get a single vehicle parking based on its ID

vehicleParkings

Get all vehicle parkings

vehicleRentalStation

Get a single vehicle rental station based on its ID, i.e. value of field stationId

vehicleRentalStations

Get all vehicle rental stations

vehicleRentalsByBbox

Non-null

Get all rental vehicles within the specified bounding box

Usages

#

References

#