White paper · November 2026
Live arrival times and punctuality
How Malaysia Transit works them out from every bus's GPS, what changed on 21 November 2026, and how well they work, service by service.
53%
of live times within 2 minutes of the bus, up from 32%
92%
within 2 minutes when the bus is under 3 minutes away, up from 45%
92%
of recorded stop times within 30 seconds of the bus's own GPS track
Malaysia Transit · malaysiatransit.techmavie.digitalVersion 1.1 · 23 November 2026
At a glance

Live times from GPS, punctuality from records

Malaysia Transit shows live bus arrival times for 13 bus services across Malaysia and, since 21 November 2026, records every bus with a live GPS feed to say how buses kept to their times. This paper explains exactly how both are worked out and how well they work, with every measurement behind them.

53%
of live times within 2 minutes of when the bus really came
was 32% · 11 services, same buses, same moments
4.9 min
average miss, all distances
was 7.3 minutes
1.2%
of minute-to-minute updates jump 5 minutes or more
was 4.6%; MRT feeders 14.6% → 0.6%
92%
of recorded stop times within 30 seconds of the GPS track
2,166 stop times, 10 services
In five points

Contents

1The data
2How a live time is worked out
3The pace, service by service
4Steady minutes
5Buses waiting at the start
6Trips the timetable doesn't have
7What was wrong before
8Results
9Limits of live times
10Recording every bus
11How accurate the records are
12On time, early, late
13Each service's timetable
14Usual times and "as usual"
15Limits of the records
AMethods and tools
BGlossary
CSources and credits
Part 1

Live arrival times

A live time answers one question: how many minutes until this bus reaches my stop? Since 21 November 2026 the answer comes from the bus's own position and the pace buses are really making, not from the timetable.

1The data

Every bus service on Malaysia Transit with live positions publishes them through data.gov.my's GTFS Realtime feeds (CC BY 4.0): Rapid KL's buses, the MRT feeder buses, Rapid Penang, and BAS.MY in Kota Bharu, Kangar, Alor Setar, Kuala Terengganu, Ipoh, Melaka, Johor Bahru, Seremban (two operators) and Kuching. Each bus's position comes about every 30 seconds, with the trip it is running. BAS.MY Kuantan has no live positions, so only its timetable is shown.

Each operator's GTFS timetable gives the routes, their stops, the line each trip follows and the timetabled times. Most feeds leave out how far along the line each stop is (shape_dist_traveled): Rapid KL and BAS.MY Kota Bharu, Ipoh, Alor Setar, Kuching and Seremban do, so the server works it out from the line itself.

2How a live time is worked out

For each bus coming to a stop, every time someone asks, the server takes five steps.

not a straight line Your stop Bus (GPS) Distance left, along the route · +15 s for each stop on the way
Figure 1. The distance left is measured along the trip's line from where the bus is placed on it to the stop, each stop on the way adding a short stop.

The distance left, along the route

The bus is placed on its trip's route line, and so is each stop, in the order the trip calls at them, so a loop's repeated streets go to the right call. The bus is projected onto the line's segments, not just its points, so a sparse line with one point per stop still places it between two stops. The distance is measured along the line: a bus across a river, or on the far side of a loop, isn't counted as close. Only with no line at all does it fall back to the straight line × 1.4.

The pace buses are making now

For each service the server keeps every bus's last 8 minutes of positions, fed by every fresh feed, and takes the median of the moving buses' average speeds, from at least 4 buses (their last 15 minutes in a quiet area). The bus's own 8-minute average counts for 30% when it has one. That pace already holds the traffic, the lights and the time of day, so nothing is added for rush hour. A drop in it counts once it has lasted (the median of the last 15 minutes' paces); a rise, at once (section 3). Until enough buses have been seen (just after a restart, early morning), it starts from the service's typical pace, measured (section 3).

Driving between stops, and stopping

The average contains the time buses stand at stops and lights, so between stops they drive at 1.5 times it, kept between 12 and 60 km/h, and each stop between the bus and the rider's adds 15 seconds, counted on the line. Measured, the pace buses really made was 0.74 times the 8-minute average with under 1 km to go, 1.2 times it with 2 to 12 km, and 1.6 times it beyond: driving faster, plus time at each stop, follows that.

Less the time since the bus reported

A moving bus has carried on since its position was sent, so the age of that report is taken off, up to 3 minutes.

Steady from one update to the next

The server remembers where each bus was on its line, so a move it couldn't have made is held, and the minutes can't swing from one update to the next (section 4). The result is rounded to the nearest minute; under a minute shows as "Now".

What isn't used
No rush-hour factor (the live pace already contains traffic and the time of day; on a weekday's rush a factor didn't help either, section 8), no timetable minutes per stop, no stationary hold, and not the feeds' own speed: every BAS.MY feed reports 0, and one reading says little about the next 10 km. Trains use their average as it is, between 15 and 90 km/h.

3The pace, service by service

A service gets its own pace scale and stop time only where they beat the shared ones clearly on data they weren't fitted to (fitted on the first half of the evening by time, checked on the second). Three did.

ServicePace between stopsEach stopWhy
All others (shared)1.5 × average15 sJohor Bahru, Melaka, Seremban and Rapid KL did better on the shared values; Kota Bharu and Alor Setar gained under 0.2 minutes
BAS.MY Ipoh1.3 × average15 sIts buses run nearer their average
BAS.MY Kuching2.1 × average50 sIts buses stand longer at stops
MRT feeder2.1 × average30 sQuick between stops
Trainsaverage as it isnone15 to 90 km/h; no measurements to split it by

Kangar and Kuala Terengganu, measured after, keep the shared values: their own fits did 0.1 minute better and worse on the data held back.

Typical pace

Each service's average pace, stops included, minute by minute as the server measures it (Saturday 21 November 2026, 16:20 to 18:20). The server starts from these until it has measured the pace live.

Figure 2. Typical pace: the median minute, with the range of 80% of minutes.
Fixed on Monday 23 November 2026: the pace on the hour
Where a service's buses leave together on the hour, the measured pace dipped as each hour came round: for a few minutes most of the moving buses were the ones just coming in to their terminals, crawling the last stretch. Kuala Terengganu's fell from about 60 to 12-16 km/h for 5 to 10 minutes, and every time on the way doubled, then jumped back. A real slowdown lasts; that dip doesn't. So a drop in the pace now counts once it has lasted: the pace used is the higher of the pace now and the median of those measured over the last 15 minutes, and a rise counts at once. Replayed on the same buses, within 2 minutes: Kuala Terengganu's first hour 21% → 40% (mean miss 7.9 → 4.2 minutes), Alor Setar's 48% → 53%, Kota Bharu's 29% → 33%, Johor Bahru from 06:00 to 07:00 63% → 65%; on Sunday's log, which it wasn't designed on, no service did worse in any window. Kuala Terengganu's updates that jump 5 minutes or more went from 10.5% to none from 06:00 to 07:00. It cost Rapid KL's first hour two points (60% → 58%), and Alor Setar's buses waiting at the start from 07:00 three (36% → 33%).

4Steady minutes

Replayed minute by minute on the buses logged on 21 November 2026, the first version of the model still let times jump: 1 update in 20 by 5 minutes or more, and on the MRT feeders 1 in 7 (34 minutes, then 4, then 21). In over half of those the bus had moved under 500 m but was put on another pass of its line: a feeder that goes out and back on the same road, a loop that crosses itself. Others were GPS positions a kilometre off for one report.

Figure 3. Updates that moved 5 minutes or more off a steady countdown, before and after (the same buses replayed).
Fixed on Sunday 22 November 2026
The first version could stay wrong: a time could only move a minute or so later per report, so a bus found to be much further away kept counting down (a Rapid KL U2538 bus 11 km from its stop showed "1 min" for 50 minutes), and a bus put on the wrong pass of a road was kept there. Now a time still beyond the limits on the third report is believed, as a move is. Replayed on the same buses: all on their way within 2 minutes 51% → 52% (mean miss 5.4 → 5.3 minutes), Rapid KL 52% → 53%, the MRT feeders 55% → 63%.

5Buses waiting at the start

About a quarter of the live buses logged were standing at their trip's first stop, and the old time counted down from the drive alone while they stood there. Now a bus is waiting when it is within 100 m of its first stop (or parked, within 40 m of one place for 90 s, within 400 m of it: terminals are bigger than a pole), not pulling away (under 8 km/h, or its reports not moving apart), and no more than 300 m along its trip. It shows "Not departed yet". What else it gets depends on how its service's buses keep to their timetabled departure:

ServiceSeen setting offMedianWithin 3 minDeparture time

When buses waiting at the start of their trip really set off (first seen 150 m away), against their trip's timetabled departure, 21 November 2026, 16:20 to 18:40. A few in most services left 25 to 120 minutes before their trip's time: buses given the trip after the one they ran.

A trip that hasn't started yet

Kota Bharu's, Kangar's, Alor Setar's and Kuala Terengganu's feeds give a bus its next trip early, while it's parked along the route or driving to the trip's start. That Sunday before 06:00, all of Kota Bharu's live times were for trips timetabled to start 15 minutes or more later; Kangar's R12 at 04:46 showed "1 min" for a trip that left at 06:30. Such a bus is now "Not departed yet" until 15 minutes before its trip starts, unless it is going along the trip's line (200 m on over the last 4 minutes). Replayed on the same buses:

ServiceFirst buses, beforeAfter06:47–08:04, beforeAfter
BAS.MY Kota Bharu0% · 30.7 min65% · 3.2 min43% · 5.0 min43% · 4.7 min
BAS.MY Kangar7% · 31.1 min39% · 8.0 min48% · 4.7 min48% · 4.6 min
BAS.MY Alor Setar46% · 9.1 min54% · 3.3 min41% · 4.3 min42% · 4.5 min
BAS.MY Kuala Terengganu25% · 9.0 min27% · 8.1 min41% · 6.7 min42% · 5.5 min

Within 2 minutes · mean miss. First buses 04:46 to 06:03, 22 November 2026.

6Trips the timetable doesn't have

About one live trip in seven (21 November 2026) has an id its timetable doesn't: Seremban numbers its trips its own way, Kuala Terengganu, Ipoh and Rapid KL run trips past their pattern's last, Causeway Link's Johor Bahru feed is on a newer timetable version than the one published, and the MRT feeders' trips aren't in their timetable at all. Those buses had no arrival times. Now each is matched to a trip of the same pattern (the same stops and line), else of the same route, whose line it's on (within 150 m) and whose timetable has a bus where it is closest to now. Its arrivals are timed along that line, and no departure time is taken from that trip's timetable, as it isn't the bus's own.

7What was wrong before

Measured on Saturday 21 November 2026, 16:20 to 18:10:

BeforeNow
Rush-hour factors on top of timetables. Rapid KL and the MRT feeders were timed from timetables that allow a median 18.6 and 17.1 km/h between stops, the same at every hour. From 16:00 to 19:00 every timetable-based time was × 1.3 and every distance-based time used 70% of the speed (× 1.43), weekends too; from 7:00 to 9:00, × 1.2 and × 1.33.The pace buses are making now, which already includes traffic and the time of day.
BAS.MY's speed is always 0. Kota Bharu, Ipoh and Alor Setar fell back to a fixed 32 to 34 km/h, × 0.7 in the evening (22 km/h), plus up to 3 minutes for a bus standing still.The measured pace of the service's moving buses.
Straight line × 1.4 for the feeds without distances along the line, rounded up.The distance along the route line.
Timetables in whole minutes. Johor Bahru, Melaka, Kuching, Seremban, Kangar and Kuala Terengganu were timed from their timetables (× 1.3 in the evening). Seremban's give every stop the same minute; Johor Bahru's and Melaka's mostly do (74% and 62%).No timetable minutes: distance and pace.
Buses waiting at their first stop counted down from the drive alone while they stood."Not departed yet", with the departure time where it holds.
Jumping minutes when a bus was put on another pass of its line.Steady minutes (section 4).
No time at all for about one trip in seven.Matched to a trip of the same stops and line.

8Results

The old code and the current code were replayed on the same buses at the same moments (replay.mjs), against when each bus really reached its stop, found from its GPS track. Buses on their way, at moments from 17:15 to 18:01 on 21 November 2026, a stretch the pace settings weren't fitted on (Kangar and Kuala Terengganu 17:24 to 18:18, where nothing was fitted).

BeforeNow
Figure 4. Live times within 2 minutes of when the bus really reached the stop, before and now.
ServiceSpeed, km/h
moving / door to door
Before
bias · miss · within 2
Now
bias · miss · within 2
Change

Bias: how much later than the bus the time said (minutes, median). Miss: mean absolute difference (minutes). Change: within 2 minutes, in percentage points. Rapid Penang's feed was down that day; Kuantan has no live positions. "Moving" is the buses' median speed between GPS reports while moving; "door to door" the timed buses' pace to their stop, stops included.

By how far away the bus was

Figure 5. Within 2 minutes, all services.

Further out the new times tend to be early (by 2 minutes at 15 to 25 minutes away, 6 at 25 to 45): buses that stand a long time on the way can't be foreseen, and early is the side that doesn't make a rider miss the bus.

Buses waiting at the start

ServiceBeforeNow

Mean miss · within 2 minutes. The apps show these buses as "Not departed yet"; the minutes order the list and drive Track this bus. Kuching's waits are the least predictable: a quarter under 10 minutes, a quarter over 41.

A weekday morning

Monday 23 November 2026, 03:42 to 09:30, all 11 areas: 7,108 bus-and-stop pairs, times checked at 139,397 moments, with the code as it ran that morning (before the pace fix of section 3). Within 2 minutes, buses on their way:

ServiceFirst hour06:00–07:0007:00–08:49Sunday 07:00–08:49
BAS.MY Alor Setar48%50%47%46%
BAS.MY Ipoh44%44%45%59%
BAS.MY Johor Bahru57%63%50%61%
BAS.MY Kangar39%*47%43%49%
BAS.MY Kota Bharu29%42%51%44%
BAS.MY Kuala Terengganu21%44%41%42%
BAS.MY Kuching12%35%42%44%
BAS.MY Melaka44%45%50%59%
BAS.MY Seremban (B)76%79%54%84%
Rapid KL60%50%39%52%
Rapid Penang57%52%44%feed down
MRT feeder55%54%51%59%
All48%*50%46%52%

* Before 06:00. No pairs were picked 05:11 to 05:41, so five services' first hour starts at 05:41. Seremban (B): under 200 times each.

The weekday rush is traffic, route by route. Rapid KL's buses made 17.5 km/h door to door from 07:00 (28.4 on Sunday). Its 220, 400, 600, 640, 190 and 303, and Rapid Penang's 701, took 1.4 to 2.2 times as long as their times said; Rapid KL's 421, 750 and 173 were on time. Nothing replayed did better: the bus's own pace counting more, slower buses counted in, longer stops, each route's own pace, or every rush time stretched by 10% or 20% (Rapid KL 39% → 38% → 36%). So the model stays; its rush times run short, the side that doesn't make a rider miss the bus.

9Limits of live times

Part 2

Punctuality

From 21 November 2026, Malaysia Transit records when every bus with a live GPS feed left its trip's first stop and when it reached each stop after it, with the timetabled time beside each. Those records give the "on time today" lines and bars on the stop popups, Departures and the trip history page.

10Recording every bus

Report 18:00:00 Report 18:00:30 stop · 18:00:10 stop · 18:00:21
Figure 6. A stop between two reports is timed by where it sits on the stretch the bus covered.

11How accurate the records are

The logs of 21 November 2026 (16:20 to 18:40, 12 services) were replayed through the recorder, and each stop time compared with an independent measure: the moment the bus's GPS track passed within 60 m of the stop.

ServiceStops comparedMedian differenceWithin 30 sWithin 60 s

The 2 seconds early is the 30 m before the stop. Most of the rest are passes the recorder missed. On the MRT feeders, nearly all loops (93% of their trips end at their first stop), that is still one stop time in five: the first thing to improve.

12On time, early, late

A bus is on time from 1 minute early to 5 minutes late, against its own trip's timetabled time at that stop. More than 1 minute early is early: a rider who came on time would have missed it. More than 5 minutes late is late.

Early On time Late Timetabled time 1 min early 5 min late
Figure 7. The on-time band, as the Trip history page and the apps count it.

The bar shows today's buses in proportion: green on time, amber early, red late. On Departures, grey is a timetabled departure no bus was seen running, and the faintest grey one not compared. A headline such as "13 of 16 on time" is green when at least half were on time, otherwise the colour of what most buses did.

What never counts against a bus
Not recorded: Malaysia Transit wasn't recording then (a gap, or before 21 November 2026). Not seen: no bus on that trip in the live feed while the provider's other buses were being recorded around it, so a gap in the recording never counts against a bus. Trips the timetable doesn't have are recorded but not compared: their timetabled times would be another bus's.

13Each service's timetable

A bus can only be held to a timetable that is its own. Each service was checked on its own.

ServiceCompared withWhy
BAS.MY Kota Bharu, Kangar, Alor Setar, Kuala Terengganu, Ipoh, Melaka, Seremban; MRT feederits own tripIts buses run the trips they carry (85% of Johor Bahru's departures within 3 minutes of their trip's time, 78% of Kota Bharu's).
Rapid Penangits own tripSince its feed came back on 22 November 2026, its trip ids match the timetable's: of 91 departures, 89% left from 1 minute early to 5 late of their own trip's time.
BAS.MY Kuchingnearest departureIts buses keep to the timetable but carry trip ids an hour or two off. Against the nearest timetabled departure of the same route, direction and first stop (within 30 minutes), 87% were on time; against their own ids, 42%.
BAS.MY Johor Bahruits own trip, or the nearest departure for a trip hours offJ32's 8 morning runs on 22 November 2026 carried trips 2 to 15 hours off, yet each left within 3 minutes of a timetabled J32 departure.
Rapid KLits usual timesIts live data doesn't say which departure each bus runs: under 1 in 10 left within 3 minutes of their own trip's time, most 2 hours or more away. On 22 November 2026, only 202 of its 494 departures were within 30 minutes of any timetabled departure of their route (a median 1.5 minutes after it). The trip history page shows that median in its colour but in a dashed outline, marked with an asterisk.

14Usual times and "as usual"

Where the timetable can't be held to, the records themselves say what's usual. For Rapid KL, the MRT feeders and Rapid Penang, the server learns when buses actually leave each first stop and come to each stop.

Rapid KL against its usual times

Quiet hours. Each bus is compared with the usual time of its route, direction and stop nearest it, within 15 minutes: as usual from 1 minute earlier to 5 minutes later, later than usual or earlier than usual beyond that.

Busy hours. The minute a bus comes means little, so the gap after the route's bus before it counts: twice the usual gap or more (and beyond the usual spread) is later than usual, a long wait; a quarter of it or less is earlier, bunched right behind.

Not judged: hours with no fixed pattern or not recorded on enough days, the first bus of the busy hours, a bus far from any usual time. Never called on time or late: these aren't a timetable.

usual gapas usual 2× or morelater than usual ¼ or lessearlier than usual (bunched)
Figure 8. In busy hours a bus is judged by the gap after the bus before (grey) against the usual gap.

15Limits of the records

Appendices

AMethods and tools

All in the middleware's scripts/eta-study/. The server measured was started locally and asked for every bus's minutes every minute, while every bus's position was logged every 20 seconds.

Check it yourself. The code named here (the arrival times, trip history and punctuality, and the arrival code as it ran before 21 November), the tools, their tests and the method notes can be downloaded at malaysiatransit.techmavie.digital/downloads/malaysia-transit-methods.zip, for review only (its LICENSE.md says what's allowed); the study's logs and the timetables they used at malaysiatransit.techmavie.digital/downloads/malaysia-transit-study-data.tar.xz, under CC BY 4.0. Its README says how to replay the evening of 21 November and what you should get. The weekday morning of 23 November (section 8) isn't in that download.

ToolWhat it does
collect.mjsLogs every bus's position every 20 s, and follows (bus, stop ahead) pairs 2 to 30 stops ahead, asking the server for that bus's minutes every minute.
analyze.pyFinds when each bus really passed its stop, from its positions (within 60 m).
replay.mjsRuns the logged buses through the server's own arrival code at the moments logged, with the clock set to each: the current code, or an older commit's. Checked against the servers themselves, the old code gave the old server's logged times to within a minute 96 to 100% of the time per service.
score.py · jumps.pySet two replays side by side against when the buses really reached their stops; measure how far each minute's time moves off a steady countdown.
fit.py · per_service*.pyFit the pace scale and stop time, shared and per service, on the first half of the evening by time; checked on the second.
service_pace.py · terminal.pyMeasure each service's typical pace minute by minute, and compare first-stop departures with the timetable.

BGlossary

GTFS / GTFS RealtimeThe open formats transit data is published in: timetables, routes and stops (GTFS), and live positions (GTFS Realtime).
TripOne run of a route at a timetabled time, from its first stop to its last.
Route lineThe path a trip follows on the map (its shape), along which distances are measured.
PaceAverage speed including the time standing at stops and lights.
Within 2 minutesA live time that said the bus would come no more than 2 minutes before or after it really did.
Bias · mean missHow much later than the bus a time said (median); how far off it was on average, either way.
Not departed yetA bus still waiting at the start of its trip.
Usual timesWhen a route's buses really leave and come, learned from recent recorded days of the same kind. Never an official timetable.

CSources and credits

Live positions: data.gov.my, GTFS Realtime, Creative Commons Attribution 4.0 (CC BY 4.0). Timetables: each operator's GTFS, through data.gov.my and the operators.

Rapid KL and MRT feeder history before 21 November 2026: Gregory Ho Wai Son and Kelvin Ling Shyan Seng, Greater Kuala Lumpur Mobilities (GKLMOB), Khazanah Research Institute, 2025, krinstitute.org/publications/gklmob, Creative Commons Attribution 3.0 (CC BY 3.0).

Malaysia Transit is an independent app, not a government one, and isn't affiliated with or endorsed by any government entity or transit operator. Questions and corrections: hello@techmavie.digital.

Measurements: 21 and 22 November 2026. The live versions of this paper's explanations: malaysiatransit.techmavie.digital/arrival-times.html and /trip-history.html.