Post

I must emphasise that it's not a journey planner, i.e., it only does direct trains, not changes. And it only looks 30 mins ahead. The use case is when you're near/at a station and many trains go to your destination (particularly useful at busy stations like Waterloo and Clapham Junction).

It's a "progressive web app" which means you should be able to add it to your home screen and it'll sort of behave like a real app. Android users, if you accept cookies & refresh, an install button should appear on the home page. iOS doesn't support that so it just gives you instructions.

I've only really tested this in an Android simulator though so you'll have to let me know if it works. PWAs aren't very well supported or documented so there was a lot of trial and error.

0 reposts0 likes

Implementation-wise, it's written in Go. There's no frontend framework. The server sends HTML to your browser (the way God intended). JavaScript is minimal—I think under 50 KB gzipped—and most of that is actually just the list of stations so the search drop-down works client-side.