How does the bus stop computer announcement system works?

when I rid the city bus, I'm always astounded at the accuracy of what I assume is a bus computer which announce to the passengers what the next up coming stop will be and its always totally right. How does it do that?
5 answers 5