Explainer

How live arrival times work

In Johor, every live time on SG-JB Transit is worked out from the bus's own GPS position, along its route, at the pace buses are really making: Malaysia Transit's method. Singapore's are LTA's own. This is exactly how, and how close Johor's come.

Updated 25 November 2026

58%
of BAS.MY Johor Bahru's times within 2 minutes of the bus
was 39%
4.4
minutes off, on average
was 6.3
60%
within 2 minutes for a bus waiting at the start
was 24%

01What you see

7 min

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

Now: the bus is under a minute away.

Not departed yetLeaves 17:00

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.

17:05

A timetable time: no live bus is on its way for that departure yet.

02How a time is worked out

Johor's live feeds (BAS.MY Johor Bahru's on data.gov.my, and Bas Muafakat Johor's) give each bus's position about every 30 seconds, and the trip it's running. For each bus coming to your stop, SG-JB Transit's server does five things, as Malaysia Transit's does.

Distance along the route 1 2 3 4
  • 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
  1. 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.

  2. 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 24 km/h on BAS.MY Johor Bahru and 20 km/h on Bas Muafakat Johor.

  3. 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.

  4. 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".

  5. 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.

BAS.MY Johor Bahru's buses leave by their timetable, so the departure time is shown and the minutes count from it.

Buses waiting at the start of their trip 100 m 400 m Not departed yetLeaves 17:00

04Trips the timetable doesn't have

Johor Bahru's feed is on a newer timetable than the published one, so some of its live trips have ids the timetable doesn't. 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 24 November 2026

Until then, Johor's times on SG-JB Transit had these faults, each now gone:

06How close the times come

Malaysia Transit ran its old and new ways on the same BAS.MY Johor Bahru buses at the same moments (21 November 2026) and checked each time against when the bus really reached the stop: times within 2 minutes of the bus went from 39% to 58%, and the average miss from 6.3 to 4.4 minutes.

Buses waiting at the start: within 2 minutes went from 24% to 60%.

Malaysia Transit's explanation and white paper have every service's figures. Malaysia Transit's explanation

07What it can't foresee

08Singapore's times

3 min

Singapore's times are LTA's own arrival estimates (LTA DataMall), for the next three buses of each service at a stop. SG-JB Transit asks for them again every 30 seconds and counts them down in between.

LTA works them out itself, from where its buses are, and publishes no timetable of their trips, so they aren't changed here and their punctuality isn't judged.

09Sources and methods

Johor's live positions: data.gov.my's GTFS Realtime feed for BAS.MY Johor Bahru (CC BY 4.0) and Bas Muafakat Johor's, read every 30 seconds. Routes, stops and timetables: each operator's GTFS. Singapore's times: LTA DataMall. The method and its measurements are Malaysia Transit's: its explanation and white paper have every table and the tools.