Danielle Zhang 张柳馨



Building a map for commuting in Seattle

Last updated: December 4, 2024

A few months ago, my partner and I have decided to start looking into buying a house in Seattle. Putting affordability into the evaluation matrix means that sometimes we need to consider neighbourhoods that we are not familiar with and are maybe a little far. With a lot of new information and new criteria to consider, it can be an overwhelming experience.

This project stems from personal frustration during this process when trying to find property that is both affordable and can allow us commute to our work via public transit under 1 hour. Instead of entering the address of the property into Google Map and check how long it takes to commute one by one, I wanted to be able to look at a map and directly see the neighbourhoods that satisfy the constraint of max commute time and decide what neighbourhoods are feasible. Luckily, Sound Transit has consolidated transit route data from all different transit agencies in the Puget Sound region and published it on their website. The open transit data is what makes this map visualisation project possible.


Google Maps transit directions between two Seattle addresses Don’t have time to check commute options for every location

To begin the map building, we first need to find the transit stops that are close to the work location that we can use. To find all these stops, I use Manhattan distance to find all transit stops that we can walk to from our work location under 15 minutes. With most of the city grids are perfectly oriented in North-South and East-West directions, except the downtown area, using Manhattan distance as an approximation is a natural choice.

After we have a list of stops we can start from, we will look for all the routes that go through these stops and find the stops on the same route that can travel to work under the time constraint. This approach excludes the commute options that require transfer. From personal experience, any public transit trip that requires transfer almost always take much longer than the map estimated :(

When calculating the commute time, we are using the longest trip time for each route. This is under the assumption that the user is commuting during the peak traffic hour, and the longest trip time for each route occurs during the peak traffic hour too.

Unfortunately, the map project took much longer than expected — it is completed after we have already closed on a house. But the result is still interesting to me. The map confirms some of our lived experience: Beacon Hill is not a neighbourhood that is friendly to our commute. To get to Beacon Hill from Aloha St/Aurora Ave, two bus trips are required. My partner tried out this commute once when he was coming from work straight to the house tour, and it took him more than 1 hour to arrive due to the transfer time.

Map of transit stops within commute time of Aloha St/Aurora Ave Map of transit stops within commute time of Aloha St/Aurora Ave

For my own commute to Eastside using public transport, the map looks pretty grim: While there are some express bus lines that connect the Eastside to Seattle using the 520 bridge, none of the stops in Seattle are in a residential neighbourhood. While Microsoft does run their own commuter buses that travel between Redmond and various neighbourhoods in Seattle, the route options and timetables are quite limited. I also do not believe in relying on corporation using their own resources to substitute public amenities as a solution to a problem. Hence I cannot wait for the East Link light rail to fully open, but maybe I should keep a realistic expectation on that since the opening date continues to be delayed (East Link sits on a razor’s edge).

Map of transit stops within commute time of an Eastside work location Map of transit stops within commute time of an Eastside work location

East Link Extension overview stating the remainder is scheduled to open in 2025 East Link Extension overview stating the remainder is scheduled to open in 2025

Even though I didn’t get to utilise the map to its full potential, it is still a fun learning project to brush up my Python skill and learning how to use Pandas package for some basic data manipulation. Maybe next time when you are moving to Seattle or looking for a new place in Seattle to live, you can use this script to get a bird-eye view on all the neighbourhoods that are within a convenient distance to whatever destination of your choice.

Link to Github repository: https://github.com/daniellezhang/seattle_transit_map