Remix.run Logo
marcusdev 7 hours ago

I'm working on a fully offline, client-side train journey planner for UK rail - https://railraptor.com

When booking flights, I use sites like Kiwi and Skyscanner that let you do flexible searches - multiple destinations, custom connections, creative routes, etc. But rail search feels oddly constrained. All the UK train operators offer basically the same experience, and surface the exact same routes. I always suspected there were better or just different options that weren’t being shown. Where is the "Skyscanner for trains"?

After digging through the national rail data feeds, I decided to have a go at building my own route planner that runs completely offline in the browser. This gave me the freedom to implement more complex filters, search to/from multiple stations, and do it without a persistent network connection.

Now I'm finding routes that aren't offered by the standard train operators, connecting at different stations, and finding it's often easier to travel to different stations (some I'd never heard of) that get me closer and faster to where I actually want to go!

It's still a little rough and I'd like to add more features such as fares, VSTP data, and direct-links to book tickets, but wanted to share early and get some initial feedback before investing more time into it. So, thanks in advance - let me know what you think.

vectorcrumb 7 hours ago | parent | next [-]

This sounds very nice! A slightly adjacent question: have you discovered any providers that can recommend train journeys based on price? Sort of like the explore feature you find on sites like Google Flights, Ryanair and Flixbus. Sometimes when the wanderlust hits I've tried searching around for cheap train tickets, but it isn't simple using sites likes DB/OEBB/SBB/SNCF/etc

marcusdev 6 hours ago | parent [-]

https://raileasy.co.uk / https://trainsplit.com is the most flexible existing service I've found, but even that doesn't give you an "anywhere" option.

I'm looking at how to add price data to railraptor, but it might mean sacrificing the fully-offline capability... once I have prices it should absolutely be possible to build a filter along the lines of "find me the cheapest popular destinations that are at least 50 miles away".

whiplash451 7 hours ago | parent | prev | next [-]

This sounds awesome. Have you checked how it fares against trainline? A quick demo would be very nice.

boutell 7 hours ago | parent | prev [-]

I love this! Dijkstra's Algorithm is always a fun time

marcusdev 6 hours ago | parent [-]

I do love Disjkstra :) this actually uses a modified version of the "Raptor" algorithm for public transport routing (hence the name!): https://www.microsoft.com/en-us/research/wp-content/uploads/...