How to get the bus position in real time?


#1

I am a newbie. I just want to get real time bus position, and I am interesting to see the longitude and latitude update every 15 seconds. I know that I need to use the GFTS Realtime Feed.
I have tried to follow https://developers.google.com/transit/gtfs-realtime/ but I cannot understand.

Can anyone tell me the steps to follow?

Thanks,
An


#2

First I would be looking at converting the protocol buffer file into a json file so you can use Mapbox or Google Maps to plot the bus position on a map. The https://github.com/harrytruong/gtfs_realtime_json is a library I have used to do just that in Python. If you require some of the TfNSW modified fields you will need to modify the code appropriately. But to get a vehicle position this will be sufficient.


#3

Thanks for your quick respone