← Portfolio

Visualising pedestrian and traffic flows in Melbourne

Animating an average week of pedestrian counts and hourly traffic volume across Melbourne's street network.

Links
Topics
data visualisationurban analytics
Stack
PythonOSMneatnetQGISAdobe After Effects

Pedestrian flows

Made for #30DayMapChallenge, Day 23 (Process). I explored open pedestrian count data from the City of Melbourne's sensor network, visualising how these point measurements could be represented across the street network.

The process involved aggregating hourly sensor data into an average week for 2025, simplifying the OSM walking network using the neatnet package to create a cleaner street representation, then distributing each sensor's counts to nearby streets.

Streets received counts based on a composite score of their network importance (betweenness centrality) and length. The assumption is that main thoroughfares and longer street segments have more pedestrians.

When sensors are close together, they're likely counting many of the same people, so a distance-based correction was added to reduce double-counting in areas with dense sensor coverage.

While the approach is simplified, it makes for a nice animation showing average daily patterns of pedestrian flows in the central city.

Data: City of Melbourne pedestrian counting system, counts per hour.

Road traffic

Data sources I used:

Traffic Volume Data: https://discover.data.vic.gov.au/dataset/typical-hourly-traffic-volume

Road Network Data: https://vicroadsopendata-vicroadsmaps.opendata.arcgis.com/datasets/5512df2ff41e4941bacf868053dbfba9_0

This project was created using Python.

First, I did some data manipulation in QGIS to acquire the street grid of a selected area in Melbourne. Then the data had to be cleaned to be suitable for plotting. The values of traffic volume also needed to be standardised, in order to plot them as the width of streets. With the help of the online community, I looped for each hour of each day of week, plotting the street grid by traffic volume. Final frames generated by the script were collated into an animation using Adobe After Effects.

This is an earlier animation of road traffic I made in 2021.
This is an earlier animation of road traffic I made in 2021.