jstransit uses Leaflet to display public transport relations (v2) from Openstreetmap using the Overpass API. If you time a certain PT route, you can use jstransit to display the speed for each segment and various other statistics.
See several examples in the examples folder:
- multiple.html displays several public transport relations in Bucharest, Romania;
- examples timings display statistics for trips made with Bus 117 in Bucharest in October 2016;
- route.html lets you choose a PT relation and a timing file from examples/timings to display statistics for the trip;
- routes.html same as above, and you can also display multiple routes, see the fifth screenshot below; there is also a button to clear the map.
- document timing format (but you have some examples)
- add route tooltip
- document other stuff
- add ability to clear map in routes.html