Table 1. Fields
Field Name | Data Type | Description |
adherence | integer | The number of minutes ahead or behind schedule the vehicle performing this departure is. If the 'adherenceEnabled' parameter is set to false this field will be empty |
arriveComplete | Boolean | Has the vehicle performing this departure arrived at the stop |
arriveTime | Datetime | The actual arrival time, null until the arrival is complete |
cancelled | Boolean | Has this stop departure been cancelled for today |
departComplete | Boolean | Has the vehicle performing this departure departed the stop |
departTime | Datetime | actual departure time |
direction | String | route pattern direction (ex 'Northbound') |
etaArriveTime | Datetime | early-insulated ETA, or scheduled when no eta |
etaDepartTime | Datetime | early-insulated ETD, or scheduled when no eta |
etaEnabled | Boolean | is it calculation enabled for this stop |
lastTimePointCrossedId | String | stopId of the last time point the vehicle performing this stop departed. |
lastTimePointCrossedTime | Datetime | time of the departure from the last time point performed by the vehicle performing this stop |
masterRoutelongName | String | GTFS long name of the route associated with this departure |
masterRouteshortName | String | GTFS short name of route associated with this departure |
realEtaArriveTime | Datetime | ETA value (as computed by RSE) for the vehicle to this stop. |
routeId | String | routeId of the master route associated with this departure |
scheduleAdherenceEnabled | Boolean | is schedule adherence enabled for this stop (aka is it a stop point) |
stopTypeDefinitionBitset | Integer | bitset in which determines the options enabled for this stop. |
scheduledTime | String | scheduled departure time for this departure |
status | String | Status string (explanation below) useful for display to riders. |
subroutelongName | String | long name of the subroute/route pattern associated with this departure |
subrouteshortName | String | short name of the subroute/route pattern associated with this departure |
time | Datetime | Legacy value, same as etaDepartTime |
trip | String | The GTFS trip_id (or tripIDName in RM) for the trip this departure is associated with. |
vehicleId | String | The internal vehicle ID of the vehicle performing the departure |
lastETACalcDateTime | Datetime | The last time an ETA calculation was done to update the ETA numbers |
routeStatus | Integer | Whether the vehicle is on-route or off-route (ETA numbers will much more reliable if the vehicle is on-route). 0 means unknown/NA, 1 is on route, 2 is off-route |
distanceOffRoute | Float | If the vehicle is off-route, this is how far the vehicle is off-route, with agency-defined units of measure |
destination | String | The name of the last stop on the current trip |
The values in brackets refer to strings defined in the web portal's Locale configuration
/* the values in brackets refer to the values in the SystemTextBundle for the given keys */ if(DEPARTURE_CANCELLED) { /* this stop departure has been cancelled */ [fixedroute.cancelled] } else if (HAS_DEPARTED) { if (SCHEDULED_TIME + 60sec > DEPART_TIME) { /* Early departure */ [fixedroute.eta_departed_at] + DEPART_TIME + "<br />" +[fixedroute.eta_scheduled_time] + SCHEDULED_TIME } else { /* on time departure */ [fixedroute.eta_departed_at] + DEPART_TIME } } else { IS_PRED = (REAL_ETA != null ? "" : "*"); if (HAS_ARRIVED) { /* at stop */ [fixedroute.eta_at_stop] + ETD + IS_PRED } else { if (ETA equals ETD) { /* arrival and departure are the same - show one value */ [fixedroute.eta_departure] + ETD + IS_PRED } else { /* need to show both times since they are not the same */ [fixedroute.eta_arrival] + ETA + IS_PRED + "<br />" + [fixedroute.eta_departure] + ETD + IS_PRED } } }
{ "data": [ { "adherence": null, "arriveComplete": false, "arriveTime": null, "cancelled": false, "departComplete": false, "departTime": null, "direction": "Outbound", "etaArriveTime": "2013-10-24T04:45:00-05:00", "etaDepartTime": "2013-10-24T04:45:00-05:00", "etaEnabled": true, "lastTimePointCrossedId": null, "lastTimePointCrossedTime": null, "masterRoutelongName": "10", "masterRouteshortName": "", "realEtaArriveTime": null, "routeId": "10", "scheduleAdherenceEnabled": true, "scheduledTime": "2013-10-24T04:45:00-05:00", "status": "Departure: 4:45 AM*", "stopTypeDefinitionBitset": 2097152, "subroutelongName": "10 Outbound All Days ", "subrouteshortName": "10 Outbound All Days ", "time": "2013-10-24T04:45:00-05:00", "trip": "0445_2013-08-09T13:27:02" }, ... ], "predicate": [ "stopId", "adhearanceEnabled", "rowCount", "preWindow", "timeHorizon" ], "subject": { "adhearanceEnabled": true, "preWindow": 15, "rowCount": 20, "stopId": "1001 - TERMINAL & TERMINAL", "timeHorizon": 120 }, "time": "2013-10-24T16:47:12-05:00", "type": "eta", "version": "4.0" }