How live arrival times work
Every live time on Malaysia Transit is worked out from the bus's own GPS position, along its route, at the pace buses are really making. This is exactly how, what changed, and how close the times come.
Updated 22 November 2026
01What you see
A live time: a bus on its way, from its GPS. It counts down between updates and is worked out again every 30 seconds.
Now: the bus is under a minute away.
Not departed yet: the bus is still waiting at the start of its trip. Where its service leaves by the timetable, its departure time is shown too.
A timetable time: no live bus is on its way for that departure yet.
02How a time is worked out
Each service's live feed (data.gov.my's GTFS Realtime) gives each bus's position about every 30 seconds, and the trip it's running. For each bus coming to your stop, the server does five things.
- Bus (GPS)
- Your stop
- 1Distance along the route
- 2Not a straight line
- 3Pace of the service's buses, last 8 min
- 4+15 s for each stop on the way
-
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 distance is measured along the line, never in a straight line: a bus across a river, or on the far side of a loop, isn't counted as close. Most feeds don't say how far along the line each stop is (Rapid KL and BAS.MY Kota Bharu, Ipoh, Alor Setar, Kuching and Seremban leave it out), so the server works it out from the line itself.
-
The pace buses are making now
For each service, the server keeps every bus's last 8 minutes of positions and takes the median of their average speeds, from at least 4 buses; the bus's own average counts for 30%. That pace already includes traffic, lights and the time of day, so nothing is added for rush hour. Until enough buses have been seen, it starts from the service's typical pace, measured: about 18 km/h on Rapid KL and the MRT feeders, 24 to 32 km/h on BAS.MY.
-
Driving between stops, and stopping
An average pace includes the time buses stand at stops, so between stops they drive faster than it: 1.5 times the average, and each stop between the bus and yours adds 15 seconds. Ipoh's buses run nearer their average (1.3 times); Kuching's stand longer at stops (2.1 times, 50 seconds a stop), and the MRT feeders are quick between stops (2.1 times, 30 seconds). Measured, the last kilometre to a stop goes at 0.74 times the 8-minute average, and a long run between towns at 1.6 times it: the split follows that.
-
Less the time since the bus reported
A moving bus has carried on since its position was sent, so the time since that report is taken off, up to 3 minutes. The result is rounded to the nearest minute; under a minute shows as "Now".
-
Steady from one update to the next
The server remembers where each bus was on its line. A move the bus couldn't have made (back more than 150 m, or ahead faster than 90 km/h) is held for up to two reports before it's believed. Between updates, a time moves later by at most about 12% of the minutes left, or sooner by about 20%; a change that holds for three reports in a row is believed at once. Within 3 minutes of the stop, the time is shown as worked out.
03Buses waiting at the start of their trip
A bus within 100 m of its trip's first stop (or parked within 400 m of it: terminals are bigger than a pole), not pulling away and not yet moving along its trip, is waiting. It shows "Not departed yet" rather than a countdown that would run out while it stands.
Where the service's buses leave by their timetable (BAS.MY Kota Bharu, Kangar, Melaka, Johor Bahru, Seremban and the MRT feeders), the departure time is shown and the minutes count from it. Alor Setar's, Kuala Terengganu's and Ipoh's buses follow theirs but often leave a few minutes off, so the minutes count from it but no time is shown. Rapid KL's, Rapid Penang's and Kuching's timetabled departures aren't used: their buses don't keep to them.
In Kota Bharu, Kangar, Alor Setar and Kuala Terengganu, the feeds give a bus its next trip early, while it's parked or driving to the start. Such a bus stays "Not departed yet" until 15 minutes before its trip starts, unless it's already going along the trip's line. Before this (22 November 2026), Kangar's first bus of the morning showed "1 min" for a trip that left an hour and 44 minutes later.
04Trips the timetable doesn't have
About one live trip in seven has an id its published timetable doesn't: Seremban numbers its trips its own way, some routes run more trips than their timetable lists, Johor Bahru's feed is on a newer timetable than the published one, and the MRT feeders' trips aren't in theirs. Those buses used to have no arrival times. Now each is matched to a trip with the same stops and line (failing that, of the same route) that it's on, and timed along that line.
05What changed on 21 November 2026
Measured on the evening of Saturday 21 November 2026, the old times had these faults, each now gone:
06How close the times come
The old code and the new were run on the same buses at the same moments (Saturday 21 November 2026, 17:15 to 18:18, a stretch the settings weren't tuned on), and each time was checked against when the bus really reached the stop.
The nearer the bus, the closer the time: under 3 minutes away, 92% of times were within 2 minutes (45% before); 10 to 15 minutes away, 36% (22%); 15 to 25 minutes, 27% (18%). Further out, times tend to be a little early: the side that doesn't make you miss the bus.
Steadier: the share of updates that moved 5 minutes or more off a steady countdown went from 4.6% to 1.2% across all services, and on the MRT feeders from 14.6% to 0.6%.
Buses waiting at the start: within 2 minutes went from 12% to 54% in Kota Bharu, 14% to 57% in Ipoh and 24% to 60% in Johor Bahru. Kuching's waits stay the hardest to foresee: a quarter are under 10 minutes, a quarter over 41.
Kuching's moving buses were already timed from distance, so they gained least (48% within 2 minutes before and now).
07What it can't foresee
- A bus that stops on the way for a long time: one Kangar bus stood 17 minutes at a stop mid-route.
- A bus leaving its route for a detour, or GPS positions that jump: a position far off the line is held until the next reports confirm it.
- A feed that stops: while a service's live feed is down (Rapid Penang's, for part of 21 and 22 November 2026), only timetable times can be shown.
- How long a bus waits at the start before leaving: the least predictable part of any time.
08Each service
Each service's typical pace (its buses' average, stops included, on the evening measured) and whether its buses leave by their timetabled departure.
| Service | Typical pace | Leaves by its timetable |
|---|
09Sources and methods
Live positions: data.gov.my's GTFS Realtime feeds (CC BY 4.0), read every 30 seconds. Routes, stops and timetables: each operator's GTFS. Measurements: every bus's position logged every 20 seconds on 21 and 22 November 2026, with the server's own times asked for every minute; the old and new code were then replayed on the same buses at the same moments. The white paper has every table and the tools.
The code, tools and tests behind these figures, and the study's logs and timetables, can be downloaded to check every one of them: the code for review only (its LICENSE.md says what's allowed), the data under CC BY 4.0.