Skip to main content

Generate a Marey Chart for the given GTFS route

Project description

gtfs-marey

Generate a Marey Chart for the given GTFS route, inspired by this explanation (in italian). Beware that the program is not bullet proof and was developed just out of curiosity.

Install

pip install gtfs-marey

Usage

usage: gtfs-marey [-h] --feed FEED --route_names ROUTE_NAMES [ROUTE_NAMES ...] --outputs
                  {html,svg,png} [{html,svg,png} ...] --days DAYS [DAYS ...] [--verbose]

Generate a Marey Chart for the given GTFS route

options:
  -h, --help            show this help message and exit
  --feed FEED           feed path or url
  --route_names ROUTE_NAMES [ROUTE_NAMES ...]
                        route name referencing 'route_short_name' value in GTFS
  --outputs {html,svg,png} [{html,svg,png} ...]
                        output type
  --days DAYS [DAYS ...]
                        day of the week to consider in the chart creation
  --verbose             Turn on verbose mode

Example

gtfs-marey --feed https://www.trentinotrasporti.it/opendata/google_transit_extraurbano_tte.zip --route_names R35 --output html,png --day monday

Things to improve

  • Better handling of the calendar schedule
  • Position stops based on their distance
  • Size of the generated picture
  • More meaningful color schema

Similar tools

gtfs-to-chart has a similar scope and is much more production-ready. The major difference is that our tool shows stops on the opposite axis, and also allows to directly generate a picture out of the elaboration.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gtfs_marey-0.1.1.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

gtfs_marey-0.1.1-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page