Article

Experimenting with TTC GTFS data in QGIS

By Mohamed Brahimi

I've always been curious about the frequency of stops in the TTC system, and have always wondered how much of Toronto is within a 5 minute walk to a transit stop.

Answering this was simple using QGIS and TTC GTFS data. After creating a 500 meter buffer around each stop in the system, it is easy to see which parts of the city are farther than a 5 minute walk from any form of public transit.

After adding a basemap and rearranging the layers, it becomes more evident where exactly these gaps in accessibility are.

The most obvious and largest gap in the northeast of the city is Rouge National Urban Park. Several smaller gaps exist within the city grid, listed below:

TTC Image 1

• The area between Finch and Sheppard, and Bayview and Leslie.

• The area between Sheppard and Wilson, and Bathurst and Yonge

• The area between York Mills and Lawrence, and Bayview and Leslie

• The area above Wilson Yard and Rogers Stadium

There are many gaps similar to these. They seem to be in places that cannot be serviced by public transit (such as large public parks, rail yard, stadium, highway) or simply suburban or very high income neighbourhoods.


I wanted to filter this down even more, and to find out how much of the city is near rapid transit. The problem of defining rapid transit arises. If it means vehicles which travel at high speeds, then it is easy to define Toronto's rapid transit using its 3 subway lines, and potentially the western portion of the Eglinton Crosstown. Toronto isn't particularly known for fast transit, but considering the coverage of its suburban bus network, I think it would be more informative to map out how much of the city has access to frequent public transit.

There is still the issue of defining what frequent transit is, and how long it must run to be considered frequent.


Using SQL, it was easy to select the subway/LRT and express bus network, which many would qualify as having frequent enough service. We can already see the huge difference in service when compared to the entire network. On the left map, the pink lines represent express routes, while the darker red lines are the TTC's subway and LRT routes. On the right, we see a 500 meter buffer around these routes, which show which parts of the city are within 500m of a high frequency form of transit.

TTC Image 1TTC Image 3