Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

One of the most common transit user behaviors is to consult an app (Google Maps, Apple Maps, NextBus, etc) to find out when the bus or train is going to arrive.

That widely desired piece of information is powered by GTFS Real-Time Trip Updates, specifically the Stop Time Updates specification.

GTFS Real Time trip updates performance metrics, specifically the stop time update messages. Accurate and reliable information should be provided to transit users for journey planning. These performance metrics provide insights into:

Reliable Prediction Accuracy

The prediction is considered accurate if it falls within the bounds of this equation: -60ln(Time to Prediction+1.3) < Prediction Error < 60ln(Time to Prediction+1.5).

As the bus approaches each stop, the software is making predictions for when the bus should arrive. When the bus is 30 min away from arrival, there is a more generous buffer for accuracy; this buffer tightens as the bus is nearing the stop.

Minutes Until Bus ArivesAccurate Within Bounds
0 min-0.26 min early - 0.41 min late
10 min-2.42 min early - 2.44 min late
30 min-3.44 min early - 3.45 min late

Availability and Completeness of Predictions

Prediction Inconsistency

Master Services Agreement

Exhibit H definitions (pg 53 on pdf)

ItemReport MetricDefinitionImplementation Notes
3. Availability of
Acceptable StopTimeUpdate
Messages
pct_tu_complete_minutes,
n_tu_complete_minutes,
n_tu_minutes_available
Percent of time riders have up-to-date prediction information available, calculated as the percent of one-minute time bins for a given trip and stop during a Trip Time Span where there are two (2) or greater GTFS-RT StopTimeUpdate arrival predictions per minute.Each minute for the 30 minute period
before each stop’s
arrival for equal comparison across stops
9. Experienced Wait
Time Delay
prediction_error_label,
avg_prediction_error_minutes
The amount of time a transit rider perceives they have waited after seeing the real-time information in their Journey Planning Application and the arrival of the next vehicle arrives at their stop. This is calculated as the time interval between the next trip to arrive at a stop for a given route_id/shape_id/stop_id combination and the next predicted arrival time from a StopTimeUpdate message for that route_id/shape_id/stop_id combination as sampled for each minute of the day that the route_id/shape_id/stop_id combination is in service.Use a simpler derived version with average
prediction error.
Current aggregation does not support
route aggregation yet.
23. Measurement Time WindowsA series of 30 consecutive time windows, each starting one (1) minute apart and lasting two (2) minutes.Each minute for the 30 minute period
before each stop’s
arrival for equal comparison across stops
27. Prediction Erroravg_prediction_error_minutesActual Trip Stop Arrival Time minus the Predicted Trip Stop Arrival Time in seconds. Note that while Prediction Error is not the final metric in this case, it is useful to retain this value into the future and in archival storage in the event that
the definition of the frontier defined in Reliable Accuracy is changed in the future based on a specific agency’s needs
28. Prediction
Inconsistency
avg_prediction_spread_minutesHow much the prediction changes in the last thirty (30) minutes before a vehicle arrives at a stop, calculated for a given trip and stop as the average Predicted Trip Stop Arrival Spread of all Measurement Time Windows where a given window has a StopTimeUpdate message for the trip and stop with a timestamp in that window.
29. Prediction Reliabilitypct_tu_accurate_minutes,
n_tu_accurate_minutes,
n_tu_minutes_available,
pct_tu_predictions_early/ontime/late,
n_predictions,
n_predictions_early/ontime/late
The percent of time transit riders are looking at a reliably good prediction – understanding that the closer a vehicle is
to a stop, the better the prediction should be, calculated as the percent of minutes for each stop for each trip where predictions have Reliable Accuracy, starting sixty (60) minutes before the first scheduled stop for the trip.
Each minute for the 30 minute period
before each stop’s
arrival for equal comparison across stops
32. Reliable Accuracypct_tu_accurate_minutes,
n_tu_accurate_minutes,
n_tu_minutes_available,
pct_tu_predictions_early/ontime/late,
n_predictions,
n_predictions_early/ontime/late
A prediction has reliable accuracy if:
-60ln(Time to Prediction+1.3) < Prediction Error < 60ln(Time
to Prediction+1.5).
39. Time to PredictionThe current time until the Predicted Trip Stop Arrival Time in minutes
43. Trip Start TimeTime of the first scheduled stop arrival of the trip per the GTFS Schedule for trips with ScheduleRelationship =
SCHEDULED or CANCELED or the first predicted arrival time for other ScheduleRelationship values.
44. Trip Time SpanTime in minutes from the Trip Start Time to the arrival time
at the stop being measured
Each minute for the 30 minute period
before each stop’s
arrival for equal comparison across stops

References