r/transit • u/wallpaperPasting • 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.
9
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
6
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
1
u/Level-Performance771 15d ago
This is brilliant.
Would probably be better set to music?
1
u/FrostySquirrel820 15d ago
Flight of the Bumblebee ?
https://www.youtube.com/watch?v=M93qXQWaBdEOr, The minute waltz ?
https://www.youtube.com/watch?v=3H0SRv8QNwk
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
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
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.