Busses already do that, I can look up right now where the next bus on my stop is, its ETA (also displayed on the stop's signaling), and it's usually right on time.
At least this is how I've observed it working here on AC Transit in the bay area. Many times I have sat at a bus stop for 25 minutes waiting for a bus that was always five minutes away.