Riders report the app is wrong, the buses have vanished from the map, or the arrival times are stuck. Somewhere behind those complaints is usually a specific, measurable failure: a GTFS realtime feed gone stale, meaning its data is older than consumers will accept. “Stale” sounds vague, but it is not. Consumer apps and validators judge freshness against named thresholds measured in seconds, and a feed that crosses them gets throttled, flagged, or dropped from the map entirely. This is the operator-facing side of that problem: what “fresh” actually means, why a feed goes stale, and how to catch it before a rider does.

If the complaint is arriving from riders first, when riders say the app is wrong diagnoses the rider-facing symptom and lists a stale feed as one of several causes. This piece goes to the technical root of that one cause.

What Does It Mean for a GTFS-Realtime Feed to Go Stale?

A GTFS-Realtime feed goes stale when its data is older than the freshness thresholds consumers enforce. Vehicle positions and trip updates should generally be no more than about 90 seconds old, and consumers flag or drop feeds whose timestamps fall too far behind. Staleness is measured against the feed’s timestamps, not against whether the file is reachable.

What “Fresh” Means

Freshness is a timestamp comparison, and getting the comparison right depends on knowing which timestamp you are reading. There are two, and confusing them hides real problems.

Feed timestamp versus entity timestamp. The FeedHeader carries a timestamp for the whole feed, when it was generated. Each vehicle position and trip update can also carry its own timestamp, when that specific measurement was taken. A feed can be regenerated every few seconds, keeping the header timestamp fresh, while an individual bus that lost signal ten minutes ago still carries an old entity timestamp. The header looks healthy; that one bus is stale. Monitor both.

The thresholds themselves come from consumer guidance rather than the core specification. The GTFS-Realtime best practices recommend refreshing vehicle positions and trip updates at least every 30 seconds, with data no older than 90 seconds. Google’s quality benchmarks use the same 90-second feed age. When a whole feed has not updated for 15 minutes, Google reports a stale-timestamp warning (TIMESTAMP_PAST), and stale data is progressively ignored. The exact numbers vary by consumer, but the shape is universal: fresh is measured in seconds, and the tolerance is small. For the fields these timestamps sit alongside, GTFS-RT vehicle positions and trip updates is the field-level reference.

The Four Common Causes

A stale feed almost always traces to one of four causes, and telling them apart is what makes the fix fast.

CauseWhat happensTell-tale sign
Static and real-time desyncReal-time references trips or stops the static feed no longer containsPredictions vanish after a schedule change
Failed refresh jobThe process that regenerates the feed stops runningHeader timestamp frozen at one moment
GPS or cellular dropout, no fallbackA vehicle loses signal and nothing fills the gapOne bus drops off while others update
Expired certificateThe feed URL fails TLS and consumers cannot fetch itEvery consumer loses the feed at once

Static and real-time desync is the most common after a schedule change. Real-time entities reference trip_id and stop_id values from the static feed. Publish a new static feed that renumbers or removes them without updating the real-time generator, and the predictions attach to nothing. A schedule change without breaking the feed depends on keeping both in step.

A failed refresh job freezes the header timestamp. The file is still there and still served, so an uptime check that only pings the URL reports everything healthy while the content ages by the minute. This is exactly why reachability and freshness are different checks.

GPS or cellular dropout with no fallback takes one vehicle stale at a time. A bus on a segment with poor coverage stops reporting, and if the feed has no rule for handling the gap, that vehicle either freezes in place or vanishes. Rural and edge-of-coverage routes hit this most.

An expired certificate is the abrupt one. The feed URL fails its TLS handshake, every consumer loses the feed simultaneously, and nothing about the feed content is wrong. This is a hosting failure, and feed hosting and uptime covers the discipline that prevents it.

Example: the same feed, two checks GTFS-Realtime feed rt.example.org URL uptime ping GET returns 200 OK Healthy Never reads the content Freshness check Header time 6 m 12 s old Stale Past the 90 s line
Reachable is not the same as fresh

How Consumers Punish Staleness

Consumers do not display a stale feed with a warning label. They quietly stop trusting it. When timestamps age past a consumer’s tolerance, the typical response is to drop the affected entities. The bus disappears from the map, the countdown reverts to the scheduled time, or the whole feed is set aside until it recovers. From the rider’s side this looks like the agency’s real-time system simply failed, even when the servers are running fine and the file is being served on time.

The reputational cost is larger than the technical one. A rider who watches a bus vanish from the map learns not to trust the map, and that lesson outlasts the outage. Because consumers fail silently, an agency often learns about staleness from rider complaints rather than from any alarm, which is the worst possible detection channel. The point of a freshness monitor is to move that detection upstream of the rider.

Setting Up a Feed-Freshness Monitor

A freshness monitor is not the same as an uptime monitor, and an agency needs both. Uptime confirms the URL responds. Freshness confirms the content is current. A freshness check does four things:

  1. Fetch and decode the feed, not just ping the URL, so it reads the actual timestamps inside.
  2. Check the feed header timestamp against a threshold, alerting when it ages past, say, 90 seconds without refreshing.
  3. Check entity timestamps so a single frozen vehicle is caught even while the header stays fresh.
  4. Validate references against the static feed, catching desync before consumers do.

Set the alert threshold tighter than the consumer’s, so the agency hears about staleness before Google or a transit app acts on it. A monitor that fires at 90 seconds gives an operator a chance to fix a failed refresh job before a rider ever notices. GTFS data quality scores cover the static-feed side of the same monitoring discipline.

Why a Single Source of Truth Prevents Most of This

Three of the four common causes share a root: the static schedule and the real-time feed are generated separately and allowed to drift apart. Desync happens because the two are maintained as separate artifacts. Failed-refresh confusion happens because uptime and content are checked separately. A vehicle dropout goes unhandled because the position feed has no relationship to the schedule that would let it fall back gracefully.

Generating both feeds from one dataset removes most of that surface. When the schedule and the real-time layer come from the same source, a schedule change updates both at once. The trip assignment behind positions and predictions stays consistent. This is why Real-Time Tracking & CAD/AVL treats the two feeds as one system rather than two outputs that happen to describe the same buses.

Where TransitFare Fits

TransitFare is a transit technology company founded in 2012 that builds GTFS-Realtime tools for small and mid-sized transit agencies running 10 to 50 vehicles. It generates vehicle positions, trip updates, and the static schedule from one dataset on the TransitFare Cloud platform. The feeds stay in step, so a stale-out from desync has far less room to happen. A software-only rollout typically takes about 4 weeks, and the platform has a strong production reliability record.

A fresh feed is a monitoring and architecture problem, not a matter of luck. Explore Real-Time Tracking & CAD/AVL to see how one dataset keeps the feeds current, and read GTFS-Realtime, explained for how the three feeds fit together in the first place.

FAQ

How Old Can a GTFS-Realtime Feed Be Before It Is Stale?

Consumer guidance generally wants vehicle positions and trip updates no more than about 90 seconds old, with refreshes on the order of every 30 seconds. The exact tolerance varies by consumer, but the pattern holds: freshness is measured in seconds, and the margin is small.

Why Does My Feed Look Up but Riders Still See Stale Data?

Because reachability and freshness are different checks. A failed refresh job leaves the file served and the URL responding while its timestamps freeze, so an uptime ping reports healthy as the content ages. You need a freshness monitor that decodes the feed and reads the header and entity timestamps, not just a check that the URL loads.

Why Does One Bus Disappear While the Others Are Fine?

That pattern points to a GPS or cellular dropout on a single vehicle with no fallback. When a bus loses signal, its entity timestamp stops advancing, and a consumer drops that stale entity while the rest of the feed updates normally. Edge-of-coverage and rural segments cause this most.

What Is the Difference Between the Feed Timestamp and an Entity Timestamp?

The feed header timestamp records when the whole feed was generated. Each vehicle position or trip update can carry its own timestamp for when that measurement was taken. The header can stay fresh while one vehicle’s entity timestamp goes stale, so monitoring only the header hides single-vehicle failures. Check both. For detours that change a trip’s stop pattern rather than its timing, GTFS-Realtime trip modifications covers the newer message type.