Bahn Escape Plan

created 29. October. 2013 created with PHP

This is a small tool that shows all trains for a particular route. The trains are shown in a timeline with their trip times running from top to bottom. Delays shift the bars further down with the original trip time appearing in red beneath the actual bar.

This is really handy when commuting, because you can better judge when to get your train, should it get delayed, as well as seeing when it'll get you to your destination. But you can also see earlier trains, that you would have missed, can now become available to you due them being delayed.

The system reads the data from the train services’ delay page. The html code is parsed with an array of regular expressions to extract the desired information.