News for hackers. Stuff that matters.
Re:Live map of London Underground Trains by mocko on Saturday April 06, 2013 @07:14PM (#5505424)
This is the kind of information which should be freely available for all public transport. Tfl are a shining example of the right way to support developer communities and help them bring better information in a multitude of formats to the traveling public.

Tragically other data holders in the UK lag far behind.

Re:Live map of London Underground Trains by wal5hy on Saturday April 06, 2013 @05:47PM (#5505179)
Weekend project of a friend and I uses live London Underground tube line status to improve route planning. Its still in a very rough state, but feedback of any kind would be very interesting to hear. Thanks. http://www.livetubemap.com/
Re:Live map of London Underground Trains by archangel_one on Saturday April 06, 2013 @06:07PM (#5505231)
Nice to have routing that takes live status into account, but it's a bit limited since it only does station->station and doesn't do buses. Often if a line is closed you're better off going to a different, nearby station and walking or taking a bus rather than trying to get to the exact one you normally do.
Re:Live map of London Underground Trains by wal5hy on Saturday April 06, 2013 @06:57PM (#5505371)
That's a very good point and we want to add that feature. Is the fact that it redraws the map based on the current state of the lines visually useful? I would like to redraw the official tfl underground map
Re:Live map of London Underground Trains by archangel_one on Sunday April 07, 2013 @04:03AM (#5506474)
Yes, I rather like it. In fact, with the appropriate lines removed, 90% of the time I wouldn't even need it to navigate for me - and it's definitely good for more fuzzy journey planning.

I can't see such a thing anywhere on their website, but in stations TfL often have the inverse; a map showing the closures with the rest greyed out. I've always felt that's the wrong way around.

Re:Live map of London Underground Trains by wal5hy on Sunday April 07, 2013 @05:57AM (#5506677)
Thanks. We felt for London commuters just the live image of the map would be enough to enable them to visualise their route. And for tourists/infrequent users the added route planning would show them how and why they should take a particular journey. You can also manually open and close stations/lines and get instant feedback on how that effects the planned journey (although this is mainly hidden in the UI)
Re:Live map of London Underground Trains by mcdowall on Wednesday April 17, 2013 @06:23PM (#5567727)
Just a heads up, the schematic Tube map is updated every 3 or 4 months. A member of my team tried mapping the points manually with appropriate curves in Canvas, ultimately it was a bit of a nightmare without the original Illustrator SVG file. It might be a painful task for you.
Re:Live map of London Underground Trains by mcdowall on Wednesday April 17, 2013 @06:20PM (#5567713)
This is great, I'll forward over to the guys working on the replacement to our current Flash version.

The data you are using will be superceded soon with a new API with more rich information at a lot lower latency (don't worry we won't decommission the old one for a long while).

We'll be mailing all our subscribers in the very near future for early access.

Re:Live map of London Underground Trains by spuz on Saturday April 06, 2013 @07:07PM (#5505403)
Could you explain how this differs from the route planner provided by TFL which also takes into account closures and line status?
Re:Live map of London Underground Trains by wal5hy on Saturday April 06, 2013 @07:11PM (#5505416)
The key concept which we considered interesting was that the image of the underground map also updates to reflect the current status of the lines. Giving instant visual feedback.
Re:Live map of London Underground Trains by SiVal on Sunday April 07, 2013 @01:05AM (#5506163)
I just watched one of the trains labeled "Northern train to unknown" derail and run across Bloombury neighborhoods without need of rails until it ground to a halt and vanished.

I have to wonder if Harry Potter was on that train....

Re:Live map of London Underground Trains by pixelcort on Saturday April 06, 2013 @05:09PM (#5505069)
Re:Live map of London Underground Trains by bugsbunny4341 on Saturday April 06, 2013 @11:50PM (#5506049)
Indian Railways on Google Maps: http://railradar.trainenquiry.com/
Re:Live map of London Underground Trains by elemeno on Saturday April 06, 2013 @07:37PM (#5505479)
It's a nifty idea, but sadly there's some problems either with the data, or how the data is being handled - it's currently showing trains running on parts of a line which are shut down for engineering work this weekend. (Northern Line, Camden to Charing Cross). There's also a train running under Bloomsbury without a line to run on...

So cool but not quite trustworthy!

Re:Live map of London Underground Trains by dracos on Saturday April 06, 2013 @08:14PM (#5505577)
It's more a work of art ;-) I basically show the data I get, but I don't fully understand it all - those Northern line trains all have a 477 id, which I think may be ghosts or tests or something else. Trains can jump lines if they're, for some reason or misparse, going straight from one station to another much further down the line.
Re:Live map of London Underground Trains by anselm_eickhoff on Saturday April 06, 2013 @07:07PM (#5505402)
Improvement suggestion: Interpolate between the transmitted positions for a smoother animation. It's really difficult for me to detect movement directions at something like 3Hz.
Re:Live map of London Underground Trains by spuz on Saturday April 06, 2013 @07:08PM (#5505408)
That is exactly what is happening. The positions of the trains are only available only every minute or so. I expect the animation speed is limited to 3fps due to performance issues.
Re:Live map of London Underground Trains by dracos on Saturday April 06, 2013 @08:21PM (#5505589)
The code is on github ;) I only really have time to keep it running and e.g. move it to OSM, but pull requests always welcome.
Re:Live map of London Underground Trains by ImprovedSilence on Saturday April 06, 2013 @07:37PM (#5505480)
Yeah, but at the very least, maybe some sort of color coding to suggest direction the train is moving.
Re:Live map of London Underground Trains by ImprovedSilence on Saturday April 06, 2013 @07:36PM (#5505478)
I'm a huge fan of the Skyfall version. Very well done, cheers!
Re:Live map of London Underground Trains by dracos on Saturday April 06, 2013 @08:16PM (#5505579)
Thanks :-) I like to think they'd seen my original version, who knows, so don't mind my backport. Theirs was a bit snazzier, but far too empty for my liking!
Re:Live map of London Underground Trains by miguelpais on Saturday April 06, 2013 @04:42PM (#5504969)
>> "Live departure data is fetched from the TfL API, and then it does a bit of maths and magic"

Even though this actual service is probably not so accurate, it does give an interesting view on what the transportation information services can become in the future!

The transportation companies probably do already have the data anyway...

Re:Live map of London Underground Trains by dreamfactory on Saturday April 06, 2013 @06:09PM (#5505234)
Cool, would also be curious to see it mapped against the tube map as printed, not geographically accurate.
Re:Live map of London Underground Trains by nchuhoai on Saturday April 06, 2013 @04:18PM (#5504881)
this kind of information should be available all around the world. Love that the tube has an API for that
Re:Live map of London Underground Trains by six on Saturday April 06, 2013 @04:27PM (#5504909)
Good luck getting access to it though (especially the National Rail one), I tried and failed.
Re:Live map of London Underground Trains by omh on Saturday April 06, 2013 @04:58PM (#5505037)
The TFL tube and bus data is effectively open now. I think I actually applied, but the URLs don't need any authentication and http://www.tfl.gov.uk/businessandpartners/syndication/16493.... gives you everything you need to query it.

I know that National Rail is a lot more awkward though.

Re:Live map of London Underground Trains by octagonal on Saturday April 06, 2013 @05:47PM (#5505180)
I came across the same hindrances when trying to build something similar to this. Public transportation data is surprisingly private.
Re:Live map of London Underground Trains by LaSombra on Saturday April 06, 2013 @05:20PM (#5505104)
It seems it changed from Google Maps to OpenStreetMap. I would like to know/understand why.
Re:Live map of London Underground Trains by gala8y on Saturday April 06, 2013 @05:27PM (#5505123)
Google Maps, above a certain threshold, is a paid service for websites. I bet on this.
Re:Live map of London Underground Trains by dracos on Saturday April 06, 2013 @08:11PM (#5505568)
A variety of reasons, including having to change stuff anyway for Google Maps v2 deprecation, preferring OSM's open model to Google with MapMaker, preferring Leaflet, and yes, possible cost too.
Re:Live map of London Underground Trains by hp50g on Saturday April 06, 2013 @04:12PM (#5504853)
Really neat stuff, but knowing how paranoid TFL and our current overlords are and the hysteria around 7/7, I'm sure someone will get rattled about this (even though its of no use to terrorists).
Re:Live map of London Underground Trains by alexcroox on Saturday April 06, 2013 @04:38PM (#5504948)
Our company worked on this (http://planefinder.net), the data is actually live ADS-B information rather than a simulation based on scheduled departure times and destinations. I'd say that's a lot worse!
Re:Live map of London Underground Trains by ceeK on Saturday April 06, 2013 @05:34PM (#5505144)
I could stare at this for hours! Not sure if its a coincidence, but I waited for a plane that would fly past my town (no other planes nearby). When it got reasonably close I looked out of my window and there you have it, plane in the sky. I'd like to think it's the same one.
Re:Live map of London Underground Trains by nilliams on Saturday April 06, 2013 @05:17PM (#5505095)
Wow, that's great. Especially love this route finder view: http://planefinder.net/route/EMA/
Re:Live map of London Underground Trains by jodrellblank on Saturday April 06, 2013 @07:35PM (#5505476)
http://www.flightradar24.com/ does similar, is it related?
Re:Live map of London Underground Trains by viame on Saturday April 06, 2013 @06:33PM (#5505309)
This helps me track my gf while she is working hah! I love this. Do you know the delay on this one? I heard there needs to be a delay of a few minutes when tracking aircrafts? Are you able to confirm? Beautiful work.

And beautiful work to the UK's underground rail tracking as well.

Re:Live map of London Underground Trains by dracos on Saturday April 06, 2013 @08:18PM (#5505582)
No-one has minded for nearly three years, and TfL are the ones providing the data :-)
Re:Live map of London Underground Trains by mcdowall on Wednesday April 17, 2013 @06:13PM (#5567684)
We won't, this data is readily available on our data page. In fact our new API will have much more information available, with a lot lower latency.
Re:Live map of London Underground Trains by tragomaskhalos on Sunday April 07, 2013 @03:44AM (#5506439)
This first appeared a couple of years ago and shortly afterwards TfL pulled the API, apparently due to excessive demand. Going to check my little app to see if the original API is back up ..
Re:Live map of London Underground Trains by dracos on Sunday April 07, 2013 @04:05AM (#5506480)
Yes, the API returned in December 2010 and has been fine (from my PoV anyway) ever since.
Re:Live map of London Underground Trains by ah- on Saturday April 06, 2013 @06:59PM (#5505377)
Here's the same thing for Munich: http://s-bahn-muenchen.hafas.de
Re:Live map of London Underground Trains by evertonfuller on Saturday April 06, 2013 @09:01PM (#5505700)
What maps is it being overlayed? Haven't seen that one before.
Re:Live map of London Underground Trains by dracos on Sunday April 07, 2013 @03:52AM (#5506455)
It's OpenStreetMap: http://www.openstreetmap.org/