Magidoc

Trip
Object

Trip is a specific occurance of a pattern, usually identified by route, direction on the route and exact departure time.

Fields

#

activeDates

List of dates when this trip is in service. Format: YYYYMMDD

alerts

[ Alert ]

By default, list of alerts which have directly an effect on just the trip. It's also possible to return other relevant alerts through defining types.

arrivalStoptime

Arrival time to the final stop

bikesAllowed

Whether bikes are allowed on board the vehicle running this trip

blockId

departureStoptime

Departure time from the first stop

directionId

Direction code of the trip, i.e. is this the outbound or inbound trip of a pattern. Possible values: 0, 1 or null if the direction is irrelevant, i.e. the pattern has trips only in one direction.

geometry

[[ Float ]]

List of coordinates of this trip's route

gtfsId

Non-null

ID of the trip in format FeedId:TripId

id

ID !
Non-null

Global object ID provided by Relay. This value can be used to refetch this object using node query.

occupancy

The latest real-time occupancy information for the latest occurance of this trip.

pattern

The pattern the trip is running on

route

Non-null

The route the trip is running on

routeShortName

Short name of the route this trip is running. See field shortName of Route.

semanticHash

Non-null

Hash code of the trip. This value is stable and not dependent on the trip id.

serviceId

shapeId

stops

[ Stop !]!
Non-null

List of stops this trip passes through

stoptimes

List of times when this trip arrives to or departs from a stop

stoptimesForDate

tripGeometry

Coordinates of the route of this trip in Google polyline encoded format

tripHeadsign

Headsign of the vehicle when running on this trip

tripShortName

wheelchairAccessible

Whether the vehicle running this trip can be boarded by a wheelchair

Interfaces

#

Also implements Node .

Usages

#

References

#

  • Field trip from Leg