City2Graph · Model public transport

Turn a GTFS public-transport feed into graphs: a travel-summary graph of stop-to-stop service and an origin-destination graph between stops.

This walkthrough mirrors the Transportation panel.

Before you begin

Import a GTFS feed first in Import urban data (Import GTFS). A São Paulo feed ships under examples/GTFS/. The Transportation panel activates once a feed is loaded.

1. Filter the service period

In Transportation, set Calendar Start and Calendar End to restrict the analysis to a date range (leave as All for the full feed).

Selecting the GTFS service period.

2. Travel summary graph

Press Travel Summary Graph to aggregate services into a stop-to-stop graph weighted by travel time and frequency.

A travel-summary graph between transit stops.

3. Origin-destination pairs

Toggle Directed and set Top N (cap the number of pairs, 0 = no limit), then press Get OD Pairs to build the GTFS OD graph between stops.

The OD graph derived from GTFS.

Next steps

Continue with Map an OD matrix to bring in external flow data.

Back to top