News for hackers. Stuff that matters.

Show HN: Follow London Trains in 3D

https://ride.nexttrain.london/

deck.gl based visualiser of the TFL Api + National Rails to be able to track (with minimal drift) a train along the way in London and to the nearest airports. If you pick one from any platform in https://nexttrain.london basically you can share your train journey along the rails. Build to test Cloudflare workers and their infra along with deck.gl performance that is incredible in my opinion.
( 62 comments | on HN )
Re:Show HN: Follow London Trains in 3D by kentonv on Sunday July 05, 2026 @11:07AM (#48794838)
This is really cool!

Quick suggestion: When not tracking a train, the mouse wheel should zoom into / out from where the cursor is pointing, rather than the center of the window.

Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @12:30PM (#48834030)
thanks! that's a great suggestion will implement
Re:Show HN: Follow London Trains in 3D by fredley on Wednesday July 08, 2026 @10:22AM (#48832357)
Very nice, but the map seems to be in the wrong position vs. the trains/3d elements.
Re:Show HN: Follow London Trains in 3D by philipwhiuk on Wednesday July 08, 2026 @10:33AM (#48832512)
I'm curious what the 3D model source is - the Gherkin is kinda weird.
Re:Show HN: Follow London Trains in 3D by 0l on Wednesday July 08, 2026 @10:57AM (#48832828)
OpenStreetMap - seems to be done with concentric circles, e.g. https://www.openstreetmap.org/way/1365317072 and a dome on top

There is a good wiki page on this: https://wiki.openstreetmap.org/wiki/Simple_3D_Buildings

Re:Show HN: Follow London Trains in 3D by jrrv on Wednesday July 08, 2026 @10:46AM (#48832694)
The planes were a surprise
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @12:29PM (#48834014)
hehe thanks!
Re:Show HN: Follow London Trains in 3D by dmazin on Wednesday July 08, 2026 @10:55AM (#48832807)
It would appear you are missing the High Barnet branch of the Northern line.
Re:Show HN: Follow London Trains in 3D by uukelele on Wednesday July 08, 2026 @12:02PM (#48833667)
And the Reading branch of the Elizabeth line
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @12:23PM (#48833922)
thanks for feedback i'll have a look!
Re:Show HN: Follow London Trains in 3D by jdswain on Wednesday July 08, 2026 @02:46PM (#48835788)
Looks like many (all?) branches are missing. Central line doesn't have the Ealing Broadway branch.
Re:Show HN: Follow London Trains in 3D by gowld on Wednesday July 08, 2026 @11:14AM (#48833044)
The train paths are drawn on a 2D layer above the buildings, not at z-index that matches the proper 3-D position. So the paths appear to weave around and over the tops of buildings.
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @12:34PM (#48834074)
I meant to make it feel like the tube ones felt "underground" by some metres i'll have a look thanks
Re:Show HN: Follow London Trains in 3D by sdoering on Wednesday July 08, 2026 @11:18AM (#48833095)
Having just taken the Elisabeth Line to LHR T5 and sitting here, this was fun. Thanks.

Edit: Is there a Repo to look at and learn from this?

Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @12:27PM (#48833983)
<3 thanks!! i'll clean it and share here sometime soon
Re:Show HN: Follow London Trains in 3D by Falimonda on Wednesday July 08, 2026 @11:28AM (#48833231)
How do I drive the train? Arrow keys not working :(
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @12:29PM (#48834006)
It's just following api data for now. That'd be a real cool feature for backlog!
Re:Show HN: Follow London Trains in 3D by darknavi on Wednesday July 08, 2026 @11:36AM (#48833352)
I'd love to see a view with all/many trains. In London I was constantly wondering what the criss-cross of underground lines looked like.
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @12:23PM (#48833916)
I saw a project like that here in hn recently for all uk trains even. it'd be pretty cool to extend this to support that, busy stations might be visually confusing, thanks for suggestions
Re:Show HN: Follow London Trains in 3D by ohjeez on Wednesday July 08, 2026 @11:37AM (#48833373)
This is incredibly cool. I had it open on my desktop for most of the day.
Re:Show HN: Follow London Trains in 3D by TheOtherHobbes on Wednesday July 08, 2026 @11:38AM (#48833390)
Interesting but quite buggy. Example: mouse dragging seems trapped in a fairly small area.
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @12:18PM (#48833845)
Ah yeah i tried anchoring to the train with a threshold for panning around i'll try smoothing it. thanks for trying it!
Re:Show HN: Follow London Trains in 3D by ampdepolymerase on Wednesday July 08, 2026 @01:35PM (#48834798)
Can you add support for touch?
Re:Show HN: Follow London Trains in 3D by hokkos on Wednesday July 08, 2026 @11:51AM (#48833529)
There seems to be some parallax issues between your trip layer and your 3D Tiles layer, but nice usage of deck.gl.
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @12:21PM (#48833894)
thank you! i'll have a look
Re:Show HN: Follow London Trains in 3D by taylorius on Wednesday July 08, 2026 @12:39PM (#48834136)
Is it not that certain train lines are somewhat deep underground? The Piccadilly line swims with respect to the ground in the centre of town, when it is below ground. Further out where lines are at the surface the routes stick to the ground correctly.
Re:Show HN: Follow London Trains in 3D by Leewen on Wednesday July 08, 2026 @12:19PM (#48833855)
model rough but amazing. i cant do this
Re:Show HN: Follow London Trains in 3D by adecoster on Wednesday July 08, 2026 @01:24PM (#48834658)
A bit buggy in term of tiles jonctions
Re:Show HN: Follow London Trains in 3D by Pigo on Wednesday July 08, 2026 @01:49PM (#48834965)
This is a fun idea and interesting implementation. I know there's only so much an api can give you, but I'd love to see anything that gives more information or visuals of the surroundings.
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @02:52PM (#48835873)
thanks! you mean more 3d buildings? I'd love to explore that or more labels on things along the way?
Re:Show HN: Follow London Trains in 3D by Pigo on Wednesday July 08, 2026 @03:49PM (#48836596)
I'd assume there's better options, but I've worked a lot with cesium. Even it has some interesting visualizations, textures, even weather you can add with it. Anything that could make it feel more immersive would just be cool in my opinion. That just sounds like fun to me.
Re:Show HN: Follow London Trains in 3D by IIAOPSW on Wednesday July 08, 2026 @01:50PM (#48834974)
This is frustratingly close to amazing. Obviously you went through all the trouble of pulling all the data from all the trains and displaying them in 3d, but then lock our view on to just one train or one station while all that interesting information zips around in the periphery. The view port needs to be more free form...less on rails.
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @02:53PM (#48835887)
I'll have a note on this! Thanks a lot! a free form to browse the trains I think is definitely doable whilst keeping it performant
Re:Show HN: Follow London Trains in 3D by Cider9986 on Wednesday July 08, 2026 @02:33PM (#48835615)
Appreciate the vibecoded note.
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @02:54PM (#48835913)
Hat tip.
Re:Show HN: Follow London Trains in 3D by tamimio on Wednesday July 08, 2026 @02:41PM (#48835726)
Neat! I chose victoria one and it was flying over the buildings!
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @02:55PM (#48835937)
I knew Victoria was fast but not so much! On a serious note it's meant to have a sense of being underground that maybe it's failing to convey. I'll check the line in more detail thanks.
Re:Show HN: Follow London Trains in 3D by ninjahawk1 on Wednesday July 08, 2026 @02:53PM (#48835888)
I guess I’m a train guy now
Re:Show HN: Follow London Trains in 3D by giancarlostoro on Wednesday July 08, 2026 @02:55PM (#48835939)
Coworker used to have a specific stream up everyday, apparently he'd seen a car get pummeled by the train. Every now and then something interesting would be on the train. I saw military tanks and gizmos on one stream, was kind of neat.
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @02:56PM (#48835952)
There's planes by the airports too
Re:Show HN: Follow London Trains in 3D by Eduard on Wednesday July 08, 2026 @02:57PM (#48835965)
using Google Pixel 7a with Chrome Android.

while the 3d buildings render properly, the trains' polygons have a flipped z-order: polygons that are supposed to be layered behind are actually in front.

nevertheless, great website!

Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @02:59PM (#48835989)
tysm for the report ill have a look, tried some things to optimise for mobile, I'll check it more
Re:Show HN: Follow London Trains in 3D by Liquidor on Wednesday July 08, 2026 @03:01PM (#48836007)
This is scary. I literally just had a dream last night wishing I could see the metro trains from above the ground in order to follow where the tunnels are under the buildings and all that. Wow.
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @03:03PM (#48836028)
Accuracy may vary, but it's great to see dreams come true!
Re:Show HN: Follow London Trains in 3D by eMPee584 on Wednesday July 08, 2026 @03:33PM (#48836418)
Like on most other digital maps today, what's direly missing is a scale bar.. cool feat though, thanks for showing!
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @04:51PM (#48837255)
yeah scales have definitely been modified for theatrical (many landmarks) thank you!
Re:Show HN: Follow London Trains in 3D by Rophlock on Wednesday July 08, 2026 @03:46PM (#48836571)
Congratulations, it seems very cool.

It's not the same, but I've tried to create a free browser-based app to track bus lines where I live (Brazil), but I had to pause this project, as each city uses a different way to track their public transportation, and it would be hard to gather all the info in a way to be usable in the whole country.

It's nice to see something similar implemented to track the transportation in another country.

Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @04:50PM (#48837245)
thank you so much! yeah the data comes in many different ways! just here tfl is diff from national rails i've found llms super helpful tho
Re:Show HN: Follow London Trains in 3D by purplecats on Wednesday July 08, 2026 @04:06PM (#48836794)
the tracks arent grounded to the map, they slide all over, and would it cool if we could use satellite view
Re:Show HN: Follow London Trains in 3D by modeless on Wednesday July 08, 2026 @04:07PM (#48836798)
The rendering is a bit weird. It's disorienting to have the trains simultaneously underneath the map and occluding it. It also seems like the z-buffer is not being used correctly when rendering the train cars.
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @04:49PM (#48837238)
yeah the trains are meant to feel "underground" maybe the effect needs improving
Re:Show HN: Follow London Trains in 3D by gilfaethwy on Wednesday July 08, 2026 @06:48PM (#48838400)
I wonder how much work it would be to actually handle them being underground/overground at appropriate places? e.g. the District Line and/or Picadilly near Hammersmith. Would be cool!
Re:Show HN: Follow London Trains in 3D by leoedin on Thursday July 09, 2026 @04:56AM (#48842944)
There's also something wrong with the map alignment. I think the tiles are being rendered with the wrong placement - the underlying map doesn't match reality.
Re:Show HN: Follow London Trains in 3D by jsabess24 on Wednesday July 08, 2026 @05:09PM (#48837467)
Good start
Re:Show HN: Follow London Trains in 3D by flockonus on Wednesday July 08, 2026 @05:32PM (#48837716)
Looking at this gave me a renewed (even if brief) sense of appreciation for our society.

Even with all of its problems, for this moment in time our society is operating effectively enough that humans can engineer interesting, beautiful, culturally rich landscapes (cities) in quite a significant size scale.

Cheers to us, in 2026.

Re:Show HN: Follow London Trains in 3D by hdgvhicv on Wednesday July 08, 2026 @05:41PM (#48837790)
Vast majority of those miles were built over 100 year ago.
Re:Show HN: Follow London Trains in 3D by mgranados on Wednesday July 08, 2026 @06:54PM (#48838455)
100% cheers
Re:Show HN: Follow London Trains in 3D by saikoko on Thursday July 09, 2026 @06:03AM (#48843441)
Saikoko
Re:Show HN: Follow London Trains in 3D by rimworld on Thursday July 09, 2026 @06:52AM (#48843828)
v cool
Re:Show HN: Follow London Trains in 3D by tomerlir on Thursday July 09, 2026 @05:09PM (#48852414)
Oooh that's cool! You should do DB next
Re:Show HN: Follow London Trains in 3D by idbnstra on Friday July 10, 2026 @11:18AM (#48861144)
it would be EVEN cooler if you used cesium and google map tiles api to have realistic looking buildings
Re:Show HN: Follow London Trains in 3D by nmenon10 on Friday July 10, 2026 @07:02PM (#48866434)
Do I live in London? No. Do I find this fun and therapeutic? Absolutely yes!

One small thing: clicking between trains causes a jarring jump atleast for me. Felt like if I was going to select a few trains in a row, it might start making me feel disoriented. A smoother eased transition might make it feel a lot less whiplash-y.