guard(() => {
if (o == null || !o.observed) return emptyNote("unavailable", "The on-time figures");
const change = !useHead ? null
: head.change_points != null
? `${Math.abs(head.change_points).toFixed(1)} points ${head.change_points >= 0 ? "higher" : "lower"} than the ${head.previous?.days ?? 28} service days before`
: `Not enough days yet to compare with the ${head.window_service_days ?? 28} days before.`;
const spark = useHead ? sparkline((head.spark ?? []).map(d => d.on_time_share_of_observed)) : null;
// A 95% interval from resampling whole trips (pipeline/periods.py).
const iv = useHead ? head.current?.on_time_share_interval95 : null;
const range = iv?.low != null && iv?.high != null && nDays > 1
? ` Allowing for chance, the share for these days is very likely between ${pct(iv.low)} and ${pct(iv.high)}.` : "";
const status = notes?.status;
const trust = status == null ? null
: status === "ok" || status === "note"
? html`<p class="trust">Our automatic checks found nothing wrong with the figures for ${longDate(notes.latest_service_date)}. <a href="limits.html">What this data can and can't tell you</a></p>`
: html`<p class="trust">Our automatic checks flagged ${status === "problem" ? "a problem" : "something to look at"} in the figures for ${longDate(notes.latest_service_date)}. <a href="quality.html">See the data quality page</a>, or <a href="limits.html">what this data can and can't tell you</a>.</p>`;
return html`<div class="headline">
<div class="big">${pct(o.on_time_share_of_observed)}</div>
<div class="big-text"><p class="big-label">of departures left on time ${period}.
<span class="note">A bus counts as on time if it leaves from 1 minute early to 5 minutes late.${range}${recent?.schedule_change ? ` Island Transit changed its schedule on ${longDate(recent.schedule_change.effective)}; the route tables below start over from that day.` : ""}</span></p>
${change ? html`<p class="change">${spark}<span>${change}</span></p>` : ""}
</div>
</div>
${splitBar(o)}
${stats([
{label: "Typical departure", value: lateness(o.deviation_s_median)},
{label: "More than 5 minutes late", value: fmtShare(o.late_share_of_observed)},
{label: "Departures checked", value: count(o.observed)},
])}
${trust}
<p class="how-measured"><a href="methods.html#on-time-performance">How we measured this</a> · <a href="limits.html">What these figures can't tell you</a></p>`;
}, "The on-time figures")How on time are Island Transit’s buses?
Every few seconds, each Island Transit bus reports where it is, and each report vanishes as soon as the next one arrives. This site saves all of them and uses them to figure out how often the buses leave on time.
Checking the collector…
Every route at a glance
Pick any route on the map or from the list under it to see how it did at each stop.
How it works
- Island TransitThe busGPS on board reports where it is
- Island TransitThe live feedwhat trip apps read; each update replaces the last one
- This projectOur collectorsaves every update, every 20 seconds, day and night
- This projectNightly checksfigure out when buses left each stop; grade the tracking data
- This projectYouthis site's charts and map, plus every file to download
The feed tells us where a bus is, but it never says when the bus left a stop. So the script traces every bus along its route, finds the moment it passed each stop, and compares that moment with the printed timetable. The same saved data also shows how often the tracking itself breaks down, which you can see on the Data quality page.
Why this exists
Island Transit doesn’t publish on-time figures, and once the live feed moves on, its data is gone for good. Saving it lets anyone ask “Was route 60 late last week?” and check the code behind the answer.