Sep 10, 2011
We decided to create a website that visualizes public transportation movements from Ulm on a map.
Browser communication for “live” events is done using socket.io. Socket.io is a very clever project, what they basically do is to implement websockets so that they work everywhere. This cross-browser compatibility is done by using a variety of techniques like XHR long polling or flashsockets. socket.io enables you to have an asynchronous communication between client-server. This way you can build realtime webapps.
If you go to the website you see a visualization of the time tables. It is live in the sense that it is the exactly how the pdf time tables look. It is not realtime, however. We hope to replace the GTFS feed with a GTFS-Realtime feed one day.
- Online demo: ulmapi-de.no.de
- Source code: GitHub repository (MIT license)
- Our entry page on the nodeknockout site: ulmapi-de
Oh by the way: You can throw any GTFS data in there. Some cities (none from germany) have public data available (see list). The project can be used as a general way to visualize GTFS data. Just change the line
var gtfsdir = "ulm"; in
Also notice: We didn’t get around to create GTFS data for the whole time table. So you don’t see every bus / tram on the map.