Physics Tom

Killer commute

23 March, 2019Readtime: 2 mins

Nobody likes traffic and congestion, especially me.

My daily commute to work is a beast (small exaggeration). If I haven’t left for work before 7:30, I can expect massive queues of manic commuters all the way along my 4 mile journey. Anytime between 7:30 and 9:00 is gridlock. I’ve experienced this many times and sometimes when I’m very keen, I can make it before 7:30, but this is a very rare occurrence.

Traffic

Thinking I could use technology to help me, or at least to confirm my suspicions, I used Google maps API to get route times. The results are scarily very accurate. If you want to also use their APIs then check out Google API. Note that you’re limited to 2,500 calls within a 24 hour period, but that is more than enough for some simple experiments.

Now, my commute is only 4 miles, but it can take 30 minutes in heavy traffic. So I queried the route times for a typical work day (Thursday, usually the worst day of the week), and looped in increments of 10 minutes over a 24 hour period. Here is the result.

Journey Time

Indeed at around 8 in the morning it peaks to 30 minutes, just as I experience.

Now time for bed, if I am going to make it before the 7:30 rush!


Thomas Stainer

Written by Thomas Stainer who likes to develop software for applications mainly in maths and physics, but also to solve everyday problems. Check out my GitHub page here.