The beta version of the site is now updated to use websockets. That seems to make the connection a lot more reliable rather than giving up after a few minutes.
You may need to do a hard reset (Ctrl-Shift-R) or delete site settings to get the new code running.
There's still some more to do in terms of detecting when the connection does go down, but it's better than it was, and hopefully I can go back to doing features that are actually visible for a week or two!
Today's update, since it's automerged:
I've added basic timetable search to the beta site - if you type "EDB KGX" (or for that matter "Kings cr Edin") into the search bar, it should fetch the whole current day's timetable of direct trains.
As every you may need to do a hard reset or delete site settings to get it running (promise I'll look at that issue soon)
This clearly still needs a bunch more work. That's likely to include being able to pick a date, integrating live running when it's the current day, being able to view more detailed information on each train.
It is pleasantly fast though, and I like the ability to pin a few timetables to the screen and have them to hand as you view the map.
As ever, feedback welcome, including whether this is a feature you'd use/value - I'm aware that the info is already available with more detail on RTT, so it's really a case of whether having it there on the map is useful
I'm also interested to know if offline timetable searches would be useful (possibly as a premium feature) - the underlying store on the server of all current and future trains is about 8mb and daily updates are typically less than 100k, so it's definitely possible to implement. It's just questionable how many places are genuinely offline anymore...