Wireframes - An agile specification tool (part 1)
Posted by Mustafa Hasanbulli - 26 June 2018
Auckland traffic has always been a hot topic in NZ. There are regular news articles about the woes of Auckland drivers as they face increasingly congested motorways, and it’s always a popular election issue.
Have you ever wondered what the traffic would be like if you leave now, or in another 30 minutes? For those of us driving to work, misjudging traffic flow and journey times can mean we’re late for that important meeting or miss those early bird car park deals.
Most of the time we can guess the traffic by previous experience e.g. if you are travelling to the city centre, it is fair enough to assume that it would be jammed in the morning and in the afternoon, as the majority of us start work between 7 and 9am and leave between 4 and 6pm.
This blog post is not about how bad the traffic is, or how we can solve it. It’s a fun experiment we set up out of curiosity to see if there was anything behind our assumptions. This isn’t a full blown modelling/simulation of Auckland traffic. If anything, we hope it shows how easy it can be to extract simple insights from publicly available data sources, using those insights to help with everyday decisions.
Google Directions API is a great tool to get estimates on how long it’s expected to take to reach a destination. We set up six Google Sheets spreadsheets with a simple script to make calls every minute to the API to retrieve travel duration estimates to/from three cardinal directions (north, west and south) to/from the CBD. As expected, there was a noticeable morning and evening rush.
More interesting observations can be made if we break down the day-to-day travel times for each direction. Below are the plots representing weekday travel duration estimates:
From the plots above, we can make some observations:
All three directions exhibit the same behavioural trend: we seem to be really eager to leave earlier and earlier as the week goes on.
As we leave work earlier, travel times increase as well. So, leaving early might not be the best option.
If we look back at the overall travel duration times for three directions, we notice something else. Regardless of the direction you are going, if you are getting into the city in the morning or you are leaving the city in the afternoon, every half an hour you are late, you add a further 10 minutes to your total travel time.
This might sound like we are suggesting to leave early. Actually, we are saying the opposite. Leave later because travel times decrease faster after peak hours.
There is a linear relationship between the time you want to leave and how busy the traffic will be at the time
e.g. If you normally leave your house at 7am and you are planning to leave at 7.30am, this will add another 10 minutes to your total travel time. So, every half an hour is equivalent to 10 minutes additional travel time when getting into the city in the morning hours, and leaving the city in the afternoon.