8000 GitHub - dragoon/cityliner: 🚃 🚋 GTFS public transport route visualisations · GitHub
[go: up one dir, main page]

Skip to content
dragoonPublic

About

🚃 🚋 GTFS public transport route visualisations

Topics

Resources

Stars

45 stars

Watchers

1 watching

Forks

< 8000 div class="d-none">

Latest commit

 

History

145 Commits

Folders and files

Repository files navigation

Cityliner

Berlin, Helsinki and Tallinn

Generate transport posters and an interactive day explorer from GTFS schedules. Try the website or request a city.

Setup

Use Python 3.11:

python3.11 -m venv .venv
.venv/bin/pip install -r requirements.txt

Gelasio and Lato are bundled. No system fonts or local configuration are needed. Keep downloaded GTFS feeds in ignored gtfs/ and generated files in processed/ or posters/.

Posters

Provide a GTFS directory containing routes.txt, trips.txt, stop_times.txt and shapes.txt:

.venv/bin/python main.py --gtfs gtfs/helsinki --place-name helsinki \
  --center 60.1706017,24.9414482 --poster --color-scheme pastel

The PDF is written to posters/helsinki-20.pdf. --max-dist sets the vertical half-extent in km (default 20). Use --poster for A0, or supply both --width and --height.

  • Palettes: pastel (default), default (ivory), inferno (apricot), earthy (green), cool (lavender).
  • --water and --admin-borders add map features. For sea polygons, download the WGS84 water shapefile into oceans/.
  • --credit adds attribution; --logos selects SVGs in assets/logos/CITY/ when you are entitled to use them.
  • --heading-font or CITYLINER_HEADING_FONT optionally overrides Gelasio.
  • City presets support repeatable batch runs.

For date-aware intensity, use an exported explorer bundle:

.venv/bin/python -m citylines.poster_bundle --bundle processed/explorer/CITY/BUNDLE_ID \
  --output posters/city.pdf --credit "Data provider and licence"

This uses the maximum scheduled departures in one hour during the bundle's week. The legacy main.py renderer counts trip records without calendar filtering.

Explorer

.venv/bin/python -m scripts.build_explorer_demo
.venv/bin/python -m http.server 8765 --bind 127.0.0.1 --directory processed/explorer-demo

Open http://127.0.0.1:8765/. The fictional demo is generated locally; no datasets are stored in the source tree. See export and hosting, host integration and tests.

Examples

Zürich, 30 km Helsinki, 30 km Tallinn, 30 km Berlin, 50 km

Licences

Code: GPLv3. Example images: CC BY 4.0. Fonts, source data and logos retain their own terms; see credits and marks. Production branding, datasets, analytics and deployment are maintained separately. Inspired by Michael Mueller's GTFS visualisations.

About

🚃 🚋 GTFS public transport route visualisations

Topics

Resources

Stars

45 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages

0