A TripTimes represents the arrival and departure times for a single trip in an Timetable. It is carried along by States when routing to ensure that they have a consistent, fast view of the trip when realtime updates have been applied. All times are expressed as seconds since midnight (as in GTFS).
| name | data type | constraints | description |
|---|---|---|---|
| wheelchairAccessibility | Accessibility | ||
| scheduled | boolean | required | true if this TripTimes represents an unmodified, scheduled trip from a published timetable or false if it is a updated, cancelled, or otherwise modified one. This method differs from getRealTimeState in that it checks whether real-time information is actually available in this TripTimes. |
| canceled | boolean | required | true if this TripTimes is canceled |
| realTimeState | RealTimeState | the real-time state of this TripTimes | |
| numStops | number | required | |
| serviceCode | number | required | The code for the service on which this trip runs. For departure search optimizations. |
| trip | Trip | The trips whose arrivals and departures are represented by this TripTimes |
Example
{
"wheelchairAccessibility" : "NOT_POSSIBLE",
"scheduled" : true,
"canceled" : true,
"realTimeState" : "SCHEDULED",
"numStops" : 12345,
"serviceCode" : 12345,
"trip" : {
"operator" : {
"name" : "...",
"url" : "...",
"phone" : "...",
"id" : { }
},
"route" : {
"agency" : { },
"operator" : { },
"branding" : { },
"groupsOfRoutes" : [ { }, { } ],
"shortName" : "...",
"longName" : { },
"mode" : "TRAM",
"description" : "...",
"gtfsType" : 12345,
"gtfsSortOrder" : 12345,
"netexSubmode" : { },
"url" : "...",
"color" : "...",
"textColor" : "...",
"bikesAllowed" : "UNKNOWN",
"flexibleLineType" : "...",
"name" : "...",
"id" : { }
},
"serviceId" : {
"feedId" : "...",
"id" : "..."
},
"shortName" : "...",
"mode" : "CABLE_CAR",
"netexSubMode" : { },
"headsign" : { },
"shapeId" : {
"feedId" : "...",
"id" : "..."
},
"direction" : "ANTICLOCKWISE",
"bikesAllowed" : "UNKNOWN",
"wheelchairBoarding" : "NOT_POSSIBLE",
"gtfsBlockId" : "...",
"gtfsFareId" : "...",
"netexInternalPlanningCode" : "...",
"netexAlteration" : "EXTRA_JOURNEY",
"id" : {
"feedId" : "...",
"id" : "..."
}
}
}