7 ms·
Major U.K. Real-Time Train Database Opens Up To More Developers
- bcraven 13y agoI have always used traintimes.org.uk because of the excellent approach the developer took regarding urls: If I want to know the next trains from Leeds to York I can simply go to the address "traintimes.org.uk/Leeds/York". The homepage suggests the data is obtained "by screenscraping the information on the official [National Rail Enquiries] site", perhaps bypassing the Darwin Database?
- phpnode 13y agothanks for the link, that's certainly better than thetrainline.com which has been frustrating for years. Btw you should stay in York, a bit nicer than Leeds.
- kzar 13y agoCool, that looks really useful. The number of times I've had to fumble on thetrainline with patchy reception! Do you know any websites that figure out the cheapest combination of tickets to get you to your destination? (Sometimes buying several tickets for legs of your journey is cheaper than buying one ticket for it.)
- joshvm 13y agohttp://www.redspottedhanky.com/ http://www.redspottedhanky.com/ is supposed to be quite good for that, though I've never used it. Never use The Train Line. They charge a booking fee. Just your local train operator, they all use exactly the same system, same database, etc but you won't pay £1 to buy the ticket.
- ColinWright 13y agoI wrote my own, and my expenditure on trains has fallen from around ukp9000 pa to around ukp5000 pa. It's actively user hostile, occasionally inaccurate, slow, and cranky. A bit like me. But I'm currently on a journey for which I padi ukp18.00 instead of ukp27.40. It's worth it for me. Email me for details. I will be slow to reply, but I will reply.
- rahimnathwani 13y agoDo you know any websites that figure out the cheapest combination of tickets to get you to your destination? There's an app for that: https://itunes.apple.com/gb/app/tickety-split/id513845919?mt=8 https://itunes.apple.com/gb/app/tickety-split/id513845919?mt... Mobile web version: http://splitticket.moneysavingexpert.com/tool.php http://splitticket.moneysavingexpert.com/tool.php Guide: http://www.moneysavingexpert.com/travel/cheap-train-tickets http://www.moneysavingexpert.com/travel/cheap-train-tickets
- ColinWright 13y agoDon't they all just work on published walk-up fares? My system also uses advances fares and relevant return and/or single journeys. I've never found an app or web site that uses the full range of options available. Probably because (as I've discovered) it's hard.
- zimpenfish 13y agoPrivate Eye often have bon mots about how even the ticket offices don't offer people the cheapest ticket because they can't figure it out. But when you have to deal with things like (eg, I'm hope I'm remembering this right from someone I know) "EUS-CDF being more expensive than EUS-SOT + SOT-CDF even though both halves are the same train as the EUS-CDF journey", you can see how no-one has a bloody clue.
- rahimnathwani 12y agoDon't they all just work on published walk-up fares? I must confess I've never used the app. I just read about it in the MSE email newsletter. I grew up in London, and didn't often have reason to take a long distance train. I have a vague childhood memory of discovering that London and England weren't synonymous.
- healsjnr1 13y agoAbout 5 years ago I worked for the guys [1] that provide the journey planning api behind NRE, the train line and most other UK rail journey planners. We built a public api that as far as I know is still running. It was pretty usable and the pricing was reasonable. There was always a sticking point about NRE letting us expose the real time data though - hopefully this has now been resolved. [1] http://www.silverrailtech.com/journeyplanner http://www.silverrailtech.com/journeyplanner
- basicallydan 13y agoGreat stuff! The race to build a map of the UK with trains moving around on it begins in 11 days. I hope that we'll see an app for the UK with CityMapper levels of awesomeness soon, that would be rad. The National Rail apps built by the various train operators are missing some good stuff.
- deleted 13y ago[deleted]
- majc2 13y agoTrainTimes already has a map (http://traintimes.org.uk/map/#bhm http://traintimes.org.uk/map/#bhm) although I'm not sure of their data source. I've looked at this before and it's already doable through the network rail api (https://datafeeds.networkrail.co.uk/ https://datafeeds.networkrail.co.uk/), which differs from the national rail enquiries api and as far as I can remember (and can see) is free.
- lucaspiller 13y agoPlaying around with it, there is room for improvement in the accuracy. Quite a few routes and stations are missing.
- majc2 13y agoYeah definitely, Edinburgh has acquired a few extra rail bridges! IIRC the network rail movement feed tells you when a train has reaching specific passing points, so there is a very granular level of data available if you want to show movements on the track.
- mocko 13y agoOpenTrainTimes already has something like this: it's a signalling diagram rather than a map (railways work in blocks of track rather than absolute train position) and @poggs uses data from the signalling system to show what block a service is in. See http://www.opentraintimes.com/maps http://www.opentraintimes.com/maps
- thehodge 13y agoHopefully we will see the return of MyRailLite
- mkohlmyr 13y agoDon't know if Tom (Real Time Trains) reads hacker news, but if you do - congrats on the mention! Obsession clearly pays.
- maaarghk 13y agoThank you to this article for introducing me to this amazing app / website. Scotrail's app is slow and buggy and awful, so even if the data isn't NRE, the better app alone wins this.
- mathieup 13y agoIs the gagging clause still in place? ( https://mocko.org.uk/b/2013/02/22/you-cant-use-the-live-uk-train-data-without-accepting-a-gagging-clause/ https://mocko.org.uk/b/2013/02/22/you-cant-use-the-live-uk-t... )
- mocko 13y agoI don't know because I haven't yet seen the terms. I'll be keeping the champagne on ice until I do.
- thom 13y agoI went to OpenTech 2013 and by far the most packed session was Peter Hicks' (Poggs) talk about open rail data[1]. I worked at Rockshore, who maintain the Network Rail datafeeds, and I remain grateful but astonished at how passionate people are about this data. [1] http://www.opentech.org.uk/2013/audio/streamC/session4.mp3 http://www.opentech.org.uk/2013/audio/streamC/session4.mp3
- toyg 12y agoThe huge London-centric contingent of developers likely have to endure a hour-long train trip twice a day, every day. That's basically a month of their life, every year, spent in trains. Obviously they'd jump at the opportunity to improve their life, if given half the chance.
- coob 13y agoI had the first app on the iOS App Store for live UK train times back in 2008. It is no longer available for legal reasons. I wonder if this means I can rerelease it :)
- stuaxo 13y agoGood point - also they give ample time for changing, and if you are a last-minuter like me sometimes you can leg it and save 20 minutes (there was one long journey I saved an hour on) .. it would be nice to know about these good-day connections.
- jamesbrownuhh 13y agoI remember an early one just called 'Trains' that had a very similar stylistic look to the built-in Weather app. Liked it a lot, was sad when it stopped working one day.
- coob 12y agoThat was the one :)
- jamesbrownuhh 12y agoCongrats, it was a great app. I hope you rerelease it. :)
- beejiu 13y agoI had an cool idea for an app: When I need a connecting service from the tube to a mainline, my phone should alert me whether I need to run for the train or if I have time for a coffee when I get close to the station. At the moment, I travel at irregular times and have to bring paper timetables around everywhere. I might even have a go at building this, if I have enough time.
- Joeboy 13y agoHalf-baked business idea: Train Dating Allow people to post a profile, and to say "I am currently on this train and potentially interested in chatting to somebody". You have an audience of bored people with smartphones, you have a ready made safe public place, and if your date is not to your taste you have an automatic cut off time. You haven't wasted an evening on a date, you've just multitasked travelling and dating in a low stakes context. Bootstrapping it to the point where people have a chance of actually finding somebody else on their train would be challenging, but that's what growth hackers are for, isn't it? Maybe the focus should be on "meeting" / "chatting" rather than "dating". I'd suggest calling the app "Strangers on a Train", although the murder association might be off-putting for some. Disclaimer: I am clearly not a businessman. Edit: If anybody reading this is a businessperson and seriously wants to try to make this work, feel free to get in touch with me about doing the tech side of it.
- pixelcort 13y agoOne risk is, if it doesn't work out, you'll be stuck running into the other person regularly, each day on your commute.
- kintamanimatt 13y agoYou've described Grindr, but for all sexual orientations and with more appropriate geolocation! This could actually work!
- lotsofmangos 13y agoIf it takes off, the potential impact on train toilet cubicles could be pretty bad. Though the queue might get more interesting.
- insky 13y agoName: Brief encounter.
- zimpenfish 13y agoAnd if you get lucky, "Briefs encounter"
- Nanzikambe 13y agoJust FYI, none the API doesn't function unless you include the following, hope it saves someone some time! default_reasons = { 0: "leaves on the track", 1: "vandalism", 2: "drunk chavs", 3: "driver being absolutely shitfaced", 4: "solar flares", 5: "transport police randomly deciding to stop and search everyone on board", 6: "you having an interview", 7: "a possible UFO sighting in Belgium", 8: "British Rail", 9: "lack of coffee at the previous station, so the driver has just nipped off to get some", 10: "leaves on the track", 11: "flooding within 300km of a railway sleeper" } delay_all_trains_by_minutes = 5 if date.today().day % 2 == 1: delay_all_trains_by_minutes = random.randrange(1,30,1) print 'All trains will be delayed by %d minutes(s) due to %s' % \ (delay_all_trains_by_minutes, default_reasons[random.randrange(0,len(default_reasons),1)])
- switch007 13y agoAlso, 12: "the late arrival of a preceding train", 13: "the train driver is currently en-route in a taxi" (I did not make this one up)
- jblok 13y agoand 14: "all the staff are striking"
- Daviey 13y agoI also had, we are delayed due to: "arriving early at the previous station" & "a Swan on the line" & "a passenger refusing to leave the first class carriage, that only has a standard ticket" (police were called, delayed 25 mins)
- Doctor_Fegg 13y agoPersonal favourite, heard at Reading station: "The 14.18 from Great Malvern is delayed due to leaves on the line. Unfortunately in this case the leaves were still attached to the tree."
- yangyang 13y agoOn a related note, Realtime Trains is an excellent website (and app) for showing current (and historical) train running times: http://realtimetrains.co.uk/ http://realtimetrains.co.uk/ It often shows platforms before they're announced in-station, which can be very handy.
- duncans 12y agoI find it shows the platforms weeks in advance.
- tomorgan 12y agonothing about our trains is "Real Time".