Rail App draws the national track layout as a signalling-style diagram and moves trains across it in real time. You can search for a station or for a train by its headcode, follow a train as it moves, and see its timetable and planned route on the map.

The track layout comes from Network Rail's TPS infrastructure model, and train positions come from the Train Describer feed, which reports each train stepping from one signalling berth to the next. Working out where those berths actually are was the hardest part. I combine Network Rail's SMART data with signal names from TPS, and the app learns the rest from how trains really move between berths.

Network Rail doesn't publish signal aspects in a usable form, so the app estimates them from where the trains are. You can also rewind the map and play back how trains moved earlier on.

The backend is Django, with Channels pushing every train movement to the browser over websockets and Celery importing the timetable each morning, on PostgreSQL and Redis. The front end is React and TypeScript, with the map drawn by deck.gl. It's unofficial, and positions and aspects are estimates, so please don't use it for anything safety related.