Transit route compass
Which way does a transit line run? Explore Toronto’s subway lines, or open an agency’s GTFS route shapes from your device.
No CoolCode account · No ads · How CoolCode works
Toronto subway example
Reading the example route geometry…
| Axis | Share | Shape km |
|---|
Open your own feed
Choose a GTFS ZIP or select an extracted shapes.txt. Include trips.txt to filter by route and routes.txt to see route names. The files stay in your browser.
What the rose measures
Each segment between consecutive points contributes its length to the nearest of eight compass axes. A train travelling east and the same path travelling west both count toward E–W. Each selected shape ID counts once, regardless of how often trips use it. Distinct shape IDs can trace the same corridor, so overlaps and route variants can contribute repeatedly.
Use rail feeds to explore the alignment of published train routes or a bus feed to explore the alignment of bus paths. These are scheduled route geometries. The rose does not measure track inventory, ridership or service frequency.
Toronto example and sources
Example downloaded 2026-11-28. The source calendar covers 2026-11-01 to 2026-12-21. Predominant axes in this snapshot:
- Line 1 (Yonge-University) · 45.0% SSE–NNW
- Line 2 (Bloor - Danforth) · 69.3% ENE–WSW
- Line 4 (Sheppard) · 91.6% ENE–WSW
The example uses the TTC subway shapes from the City of Toronto feed. TTC Routes and Schedules · Download the route-shape extract.
Contains information licensed under the Open Government Licence – Toronto. The Toronto example is a dated illustration. Upload a newer agency feed to inspect a different schedule.
Explore Metro Vancouver bus ridership by route · GTFS shapes reference