High Speed Too
Draw new railway lines on a real map of Britain, place stations and run trains on them. I wanted to see how far open data could go in answering a planner's first question: who would a new line actually serve?
- Maps and data. MapLibre maps served from PMTiles, with Python pipelines that turn ONS census boundaries, OpenStreetMap rail lines and DfT station data into map layers.
- Simulation. Routes follow a graph of real and user-drawn track. A custom engine handles train performance, speed limits, dwell times, signalling and timetables.
- Demand and testing. Census catchments around each station estimate demand. Playwright tests cover editing, simulation, overlays, saving and export.
- TypeScript
- Vite
- MapLibre GL JS
- PMTiles
- Python
- GeoJSON
- Playwright