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 | 
|---|---|---|---|
| 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
{
  "scheduled" : true,
  "canceled" : true,
  "realTimeState" : "CANCELED",
  "numStops" : 12345,
  "serviceCode" : 12345,
  "trip" : {
    "operator" : {
      "name" : "...",
      "url" : "...",
      "phone" : "...",
      "id" : { }
    },
    "tripOperator" : {
      "name" : "...",
      "url" : "...",
      "phone" : "...",
      "id" : { }
    },
    "route" : {
      "branding" : { },
      "agency" : { },
      "operator" : { },
      "shortName" : "...",
      "longName" : "...",
      "desc" : "...",
      "gtfsType" : 12345,
      "mode" : "RAIL",
      "url" : "...",
      "color" : "...",
      "textColor" : "...",
      "bikesAllowed" : "NOT_ALLOWED",
      "sortOrderSet" : true,
      "sortOrder" : 12345,
      "flexibleLineType" : "...",
      "name" : "...",
      "netexSubmode" : "...",
      "id" : { }
    },
    "serviceId" : {
      "feedId" : "...",
      "id" : "..."
    },
    "mode" : "SUBWAY",
    "netexSubmode" : "...",
    "tripShortName" : "...",
    "internalPlanningCode" : "...",
    "tripHeadsign" : "...",
    "routeShortName" : "...",
    "direction" : "INBOUND",
    "blockId" : "...",
    "shapeId" : {
      "feedId" : "...",
      "id" : "..."
    },
    "wheelchairAccessible" : 12345,
    "bikesAllowed" : "ALLOWED",
    "fareId" : "...",
    "tripAlteration" : "EXTRA_JOURNEY",
    "id" : {
      "feedId" : "...",
      "id" : "..."
    }
  }
}