QueryType Object
Fields
#
agency
Get a single agency based on agency ID, i.e. value of field gtfsId
(ID format is FeedId:StopId
)
bikePark
Get a single bike park based on its ID, i.e. value of field bikeParkId
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
departureRow
Get a single departure row based on its ID (ID format is FeedId:StopId:PatternId
)
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.
pattern
Get a single pattern based on its ID, i.e. value of field code
(format is
FeedId:RouteId:DirectionId:PatternVariantNumber
)
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
route
Get a single route based on its ID, i.e. value of field gtfsId
(format is FeedId:RouteId
)
station
Get a single station based on its ID, i.e. value of field gtfsId
(format is FeedId:StopId
)
stop
Get a single stop based on its ID, i.e. value of field gtfsId
(ID format is FeedId:StopId
)
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.
vehicleRentalStation
Get a single vehicle rental station based on its ID, i.e. value of field stationId
vehicleRentalsByBbox
Get all rental vehicles within the specified bounding box
Usages
#
References
#
- Field viewer from QueryType