Show HN: Follow London Trains in 3D

156 points
1/21/1970
8 days ago
by mgranados

Comments


IIAOPSW

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.

4 days ago

mgranados

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

4 days ago

Rophlock

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.

4 days ago

mgranados

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

4 days ago

darknavi

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.

4 days ago

mgranados

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

4 days ago

modeless

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.

4 days ago

mgranados

yeah the trains are meant to feel "underground" maybe the effect needs improving

4 days ago

leoedin

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.

3 days ago

gilfaethwy

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!

4 days ago

nmenon10

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.

2 days ago

flockonus

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.

4 days ago

hdgvhicv

Vast majority of those miles were built over 100 year ago.

4 days ago

mgranados

100% cheers

4 days ago

Pigo

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.

4 days ago

mgranados

thanks! you mean more 3d buildings? I'd love to explore that or more labels on things along the way?

4 days ago

Pigo

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.

4 days ago

Liquidor

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.

4 days ago

mgranados

Accuracy may vary, but it's great to see dreams come true!

4 days ago

eMPee584

Like on most other digital maps today, what's direly missing is a scale bar.. cool feat though, thanks for showing!

4 days ago

mgranados

yeah scales have definitely been modified for theatrical (many landmarks) thank you!

4 days ago

TheOtherHobbes

Interesting but quite buggy. Example: mouse dragging seems trapped in a fairly small area.

4 days ago

mgranados

Ah yeah i tried anchoring to the train with a threshold for panning around i'll try smoothing it. thanks for trying it!

4 days ago

ampdepolymerase

Can you add support for touch?

4 days ago

fredley

Very nice, but the map seems to be in the wrong position vs. the trains/3d elements.

4 days ago

Eduard

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!

4 days ago

mgranados

tysm for the report ill have a look, tried some things to optimise for mobile, I'll check it more

4 days ago

ninjahawk1

I guess I’m a train guy now

4 days ago

giancarlostoro

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.

4 days ago

mgranados

There's planes by the airports too

4 days ago

dmazin

It would appear you are missing the High Barnet branch of the Northern line.

4 days ago

jdswain

Looks like many (all?) branches are missing. Central line doesn't have the Ealing Broadway branch.

4 days ago

uukelele

And the Reading branch of the Elizabeth line

4 days ago

mgranados

thanks for feedback i'll have a look!

4 days ago

philipwhiuk

I'm curious what the 3D model source is - the Gherkin is kinda weird.

4 days ago

0l

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

4 days ago

kentonv

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.

7 days ago

mgranados

thanks! that's a great suggestion will implement

4 days ago

gowld

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.

4 days ago

mgranados

I meant to make it feel like the tube ones felt "underground" by some metres i'll have a look thanks

4 days ago

sdoering

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?

4 days ago

mgranados

<3 thanks!! i'll clean it and share here sometime soon

4 days ago

hokkos

There seems to be some parallax issues between your trip layer and your 3D Tiles layer, but nice usage of deck.gl.

4 days ago

taylorius

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.

4 days ago

mgranados

thank you! i'll have a look

4 days ago

idbnstra

it would be EVEN cooler if you used cesium and google map tiles api to have realistic looking buildings

2 days ago

tomerlir

Oooh that's cool! You should do DB next

3 days ago

ohjeez

This is incredibly cool. I had it open on my desktop for most of the day.

4 days ago

tamimio

Neat! I chose victoria one and it was flying over the buildings!

4 days ago

mgranados

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.

4 days ago

Falimonda

How do I drive the train? Arrow keys not working :(

4 days ago

mgranados

It's just following api data for now. That'd be a real cool feature for backlog!

4 days ago

purplecats

the tracks arent grounded to the map, they slide all over, and would it cool if we could use satellite view

4 days ago

adecoster

A bit buggy in term of tiles jonctions

4 days ago

Cider9986

Appreciate the vibecoded note.

4 days ago

mgranados

Hat tip.

4 days ago

jrrv

The planes were a surprise

4 days ago

mgranados

hehe thanks!

4 days ago

Leewen

model rough but amazing. i cant do this

4 days ago

saikoko

Saikoko

3 days ago

jsabess24

Good start

4 days ago

rimworld

v cool

3 days ago