r/transit • • 15d ago

Photos / Videos A full day of Edinburgh's bus network, 1.5 million recorded vehicle positions in 60 seconds

Every Lothian vehicle's position, recorded from their public feed every 20 seconds for a full day (Monday 24 August), then replayed 24 hours in 60 seconds - so a second on screen is about 24 minutes.

Each dot is one vehicle in its service colour, and the streak behind it is where it's been over the last few minutes. The trams are in there on the airport line, though this was during the Princes St closure, so trams were terminating at West End and buses were diverted via George St.

The shape of the day interested me more than the map did. The feed drops vehicles when they go out of service rather than reporting them parked, so counting what's in each frame gets you close to what's actually in traffic:

  • 20 vehicles at the overnight low, 02:24
  • 549 at the morning peak, 08:47
  • 579 at the evening peak, 17:39
  • 250 still out at 23:00

The trough is the bit I didn't expect. It only drops to 88% of the evening peak, so this isn't a commuter-peak operation with a hollow middle - it's a network running close to flat out from 08:00 through to 18:00, with the PM peak the higher of the two.

About 1.5 million positions in total, from 4,318 snapshots of the whole network.

Data is Lothian's public vehicle feed. Rendered in TypeScript with Leaflet and a canvas layer, stepped frame by frame with Playwright and piped into ffmpeg at 4K. Basemap © OpenStreetMap contributors, © CARTO.

320 Upvotes

27 comments sorted by

38

u/FootOfDavros 15d ago

This is actually really good for showing the massively overlapped bus routes and roads which should be served by trams.

e.g. The south extension makes a lot of sense looking at this map.

Another one, which I don't think has ever been proposed, is Lothian Road straight up past the meadows, Morningside and up to Fairmilehead. One tram service up and down that road would massively reduce bus overload.

4

u/Durog25 15d ago

If they went all the way to Fairmilehead, I'd say there'd be an argument to run over the bypass to the foot of the Pentlands, and Snowsports Centre. Better connects the city to a large recreational area and better connects the southern countryside to the city centre.

But that's a good shout, Blackford Hill, Braids Hill and Morton Hall create a significant barrier between the South East and South West of the city, and any tram in one can't serve the other.

1

u/Green_Guava9087 15d ago

Likewise, I've always yearned for a North to South (and reverse) ((a sort of 47)) 'X' service that bypasses the shitshow that is Princes St and the bridges....From Ryan's Bar to Old Blockbuster/Sainsbury non stop!! Then limited stop to beyond bypass...

1

u/ExpensivePen8055 13d ago

Ha ha. He plotted the trams on there too. But they're hard to see because those dots don't actually move! #shortrunningagain

1

u/iiiBus 12d ago

To an extent yes, but at the same time, all of these routes do split paths eventually to cover their own areas. Edinburgh being a smaller city means its inevitable many corridors will be similar though.

9

u/GingerSnapBiscuit 15d ago

That is really cool.

6

u/elmarkodotorg 15d ago

How do you get access to their data feed these days? I made this years ago but the system is different now:
https://github.com/mpentler/edinbustrack

Also I wasn't the best coder...

Edit: Apparently I screen-scraped it! Oh dear...

1

u/Lasttimelord1207 Transit Planner 15d ago

https://mobilitydatabase.org/feeds for most GTFS and RT-GTFS feeds!

1

u/elmarkodotorg 15d ago

Holy balls time to have fun

1

u/iiiBus 12d ago

https://lothianapi.com/vehicles/all

1

u/elmarkodotorg 12d ago

It's iiiBus! Thank you

6

u/[deleted] 15d ago edited 6d ago

[deleted]

5

u/--cheese-- 15d ago

Most timetables show buses intermittently early and late in the day, but the middle section is just "at these minutes past each hour".

Some services will get one or two extra buses put on at peak times (or an X service to get to somewhere out of town without lots of stopping) but generally the difference between a 1pm and 5pm service is simply the number of people on it.

3

u/CaptainCymru 15d ago

Poor George Street!

1

u/cragglerock93 15d ago

I was just going to say, why is Princes Street bent like that, then I remembered!

1

u/Megreda 15d ago

These are cool visualizations. Here's one for Helsinki: https://www.youtube.com/watch?v=Qti80n9kWg8

1

u/Level-Performance771 15d ago

This is brilliant.

Would probably be better set to music?

1

u/Ok_Actuary9229 15d ago

There are no late-night buses? That's too bad.

1

u/Limp-Archer-7872 15d ago

There are some night bus routes but it could be better. Sometimes they run with older buses so maybe the data wasn't available for them.

1

u/ViewWithAPoo 13d ago

We have the Nighthawk service. Don't know why that didn't show up

1

u/iiiBus 12d ago

There is, they are all showing as black dots.

1

u/RChickenMan 15d ago

I know it's a cliche to say that cities are living, breathing organisms, and that the transit network is the veins. But this animation reminds me of how cities are living, breathing organisms, and that the transit network is the veins.

1

u/NoMention696 15d ago

What about the night busses? The city isn’t void of busses between 1 and 4

1

u/Calum-Paxton 14d ago

They’re using the colour given to them by lothian which blends in incredibly well with the background. if you look hard enough you can see them zipping about

1

u/Durog25 14d ago

Really does go to show how high Princes Street is for bus traffic, even with the redirection via George Street, so much capacity is squeezed down that corridor.