Three feeds make up GTFS-Realtime, and two of them get confused constantly. This is a field reference for GTFS realtime vehicle positions and trip updates, the pair that most people talk about as if they were interchangeable and are not. What is GTFS-Realtime? covers all three feeds at overview depth. This piece goes to the field level on the two that carry a vehicle’s location and its predicted arrival, and checks every claim against the gtfs.org GTFS-Realtime reference.

What Is the Difference Between Vehicle Positions and Trip Updates?

A vehicle position message reports where a vehicle physically is right now: coordinates, heading, and which stop it is approaching. A trip update message reports predicted arrival and departure times for a trip’s remaining stops, expressed as a delay or a predicted time. Positions describe location. Trip updates describe timing. Neither one contains the other.

Inside a Vehicle Position Message

A VehiclePosition entity describes one vehicle at one moment. It does not describe a route, a schedule, or a trip’s history. It is a snapshot, replaced by the next one on the next publish cycle rather than accumulated into a track. The fields below are the ones an agency’s Real-Time Tracking & CAD/AVL system populates on every cycle, and the ones most feed generators leave unset.

FieldCarries
tripThe trip_id, route_id, and direction_id the vehicle is currently serving.
vehicleAn identifier for the physical vehicle: id and often a label.
position.latitude / position.longitudeCurrent coordinates.
position.bearingCompass heading, when the onboard unit can compute one.
position.speedCurrent speed, when available.
current_stop_sequence / stop_idWhich stop, by order and by ID, the vehicle is at or approaching.
current_statusINCOMING_AT, STOPPED_AT, or IN_TRANSIT_TO. Defaults to IN_TRANSIT_TO if left unset.
timestampWhen this position was measured, not when it was published.
occupancy_statusAn optional enum describing how full the vehicle is.

current_status does more work than its size suggests. Left at its default, every vehicle looks like it is perpetually in transit, never arriving and never stopped. Setting it deliberately is the difference between a consumer app rendering “at stop” and a dot that appears to drift through a stop without pausing. occupancy_status reports crowding as a category, from empty through standing room only. GTFS-RT also has an occupancy_percentage field for a linear figure, where 100 means the vehicle’s maximum occupancy.

Illustrative: how often the feed publishes Too slow for Google Prediction accuracy Feed data volume 120 s60 s30 s15 s5 s Time between feed updates

Inside a Trip Update Message

A TripUpdate entity describes one trip’s predicted schedule, carried as a set of per-stop updates rather than one arrival time for the whole run. A trip with twenty remaining stops can carry twenty separate predictions in one update. Each prediction is independently more or less certain than the next, because delay does not accumulate evenly across a route.

FieldCarries
tripThe trip_id this update applies to, plus route_id, start_date, and schedule_relationship.
vehicleWhich physical vehicle is serving the trip, when known.
stop_time_update (repeated)One entry per stop, each with its own prediction.
stop_time_update.stop_sequence / stop_idWhich stop the prediction is for.
stop_time_update.arrivalPredicted arrival: a delay in seconds, a time, or both.
stop_time_update.departurePredicted departure, same structure as arrival.
stop_time_update.schedule_relationshipSCHEDULED, SKIPPED, NO_DATA, or UNSCHEDULED for that stop.
timestampWhen this set of predictions was generated.

The repeated stop_time_update array is the part that surprises people building their first feed. A trip update is not one arrival time. It is a list of predictions, one per remaining stop, and a consumer app has to walk that list to find the stop a rider actually cares about. Drop a stop from that list without setting schedule_relationship to SKIPPED, and an app cannot tell the difference. “This stop was cut from the trip” and “no prediction was generated yet” look identical from the outside.

How Often Should You Publish?

Publishing interval is a trade-off between freshness and load, and it plays out differently for each feed. Google’s Transit Partner Program looks for vehicle position and trip update refreshes on a roughly 30-second cycle. That interval is the slowest acceptable, not a target to relax toward.

Publish too slowly and predictions go stale between cycles. A rider sees “3 minutes” that was accurate 45 seconds ago. It is not accurate now, especially on a stop-and-go segment where a vehicle’s progress can swing quickly. Publish faster than the source data actually changes, and the feed grows heavier for every consumer polling it. None of that extra volume makes the predictions any more correct. A vehicle sending a position every 5 seconds when its onboard unit only recomputes location every 15 does not add accuracy. It adds volume.

The practical target for most small agencies is the same 30-second cycle Google expects, tightened only where a specific corridor’s timing genuinely benefits from it. Fleet size changes what that interval costs to run. An agency operating 50 vehicles serves a heavier payload than one operating 10, from the identical interval. Every consuming app adds requests, and every vehicle adds to the size of each response. The GTFS-Realtime best practices set the outer limit (refresh at least every 30 seconds); tuning below that is an operational decision.

Which Fields Consumer Apps Actually Read

Not every field in either message reaches a rider. Consumer apps read for what changes the screen and quietly ignore the rest.

From vehicle positions: position.latitude and position.longitude drive the moving icon, and current_status decides whether that icon shows as “at stop” or in transit. occupancy_status surfaces in apps that display crowding, when an agency populates it. Fields like position.bearing and position.speed matter more to internal dispatch tooling than to a rider-facing map. Many public consumers do not render them at all.

From trip updates: arrival.delay or arrival.time on the next unvisited stop is the number that becomes the countdown a rider sees. schedule_relationship set to SKIPPED is read closely. It tells an app to remove a stop from the prediction list instead of showing a prediction for a stop the trip will not serve. Fields further down the structure, like per-stop departure times for stops well past the vehicle’s position, exist for completeness. They rarely change what a rider sees on the first screen.

The pattern holds across both messages. A handful of fields carry nearly all of the rider-facing behavior, and the rest exists for downstream tooling, debugging, and edge cases most riders never encounter. That is a useful filter when a first integration goes wrong. Check the small set of fields a map or trip planner actually renders before assuming the whole feed is broken. Most feed problems trace back to one of those few fields being empty, stale, or set to a default value nobody meant to ship.

Where the Two Feeds Have to Agree

Vehicle positions and trip updates are independent feeds, and a consuming app pairs them by one shared value: trip_id. A position message says “vehicle 214 is on trip 40821.” A trip update message says “trip 40821 is running 3 minutes late.” An app pairs the two by matching that ID. No other field does the job.

When the two feeds disagree, the pairing breaks quietly. Say a CAD/AVL system publishes positions against one trip_id, while whatever generates trip updates is still working from a different one. An app ends up with a moving dot and no attached prediction, or a countdown with no dot to move. Neither system throws an error. The mismatch just looks like missing data to whoever is reading it. This is the reason Real-Time Tracking & CAD/AVL treats both feeds as one system rather than two separate outputs. They are generated from the same trip assignment, and they have to stay generated from the same one.

A related failure mode sits at trip boundaries. When a vehicle finishes one trip and starts the next, both feeds need to update to the new trip_id on the same publish cycle. Positions moving to the new trip while updates still report against the old one produces the same silent mismatch, for as long as the lag lasts.

This is a common source of the “phantom stop” complaint riders sometimes raise, where a map shows a bus approaching a stop it has actually already passed. Nothing is wrong with either feed in isolation. They have simply fallen out of step with each other for a few seconds at the seam between two trips, and a rider watching the map in that window sees the disagreement directly.

Closing the Gap Between the Two Feeds

A rider does not experience vehicle positions and trip updates as two feeds. They experience one moving dot with one countdown next to it, and that experience only holds together when the trip_id behind both stays in lockstep every publish cycle. Where alerts fit into the same picture covers the third feed, the one that explains why the dot and the countdown stopped matching the schedule at all. For the mechanics of getting predictions in front of riders on the maps they already use, see how live arrivals reach Google Maps.

TransitFare is a transit technology company founded in 2012 that builds GTFS-Realtime tools for small and mid-sized transit agencies. It generates both feeds in TransitFare Cloud from the same trip assignment, so positions and predictions are designed to stay in sync. A software-only rollout typically takes about 4 weeks. A deployment that adds hardware-backed modules typically takes about 12 weeks, and the same platform has processed 60 million+ fare validations. Explore Real-Time Tracking & CAD/AVL to see how the platform keeps both feeds in sync, or read the GTFS-RT service alerts reference for the third feed in the set. Occupancy travels inside the same vehicle position message, covered in real-time bus crowding data.