Skip to content

derhuerst/print-gtfs-rt-cli

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

print-gtfs-rt-cli

Read a GTFS Realtime (GTFS-RT) feed from stdin, print human-readable or as JSON.

npm version ISC-licensed support me via GitHub Sponsors chat with me on Twitter

Installing

npm install -g print-gtfs-rt-cli

Or use npx.

Usage

Usage:
    cat gtfs-rt-feed.pbf | print-gtfs-rt
Options:
    --length-prefixed  -l  Read input as length-prefixed.
                           See https://www.npmjs.com/package/length-prefixed-stream
    --json             -j  Output newline-delimeted JSON (http://ndjson.org).
    --single-json -s       Output a single JSON array.
    --depth            -d  Number of nested levels to print. Default: infinite
    --include-all      -a  Print the entire FeedMessage, including its header.
    --gtfs-rt-bindings     Path to GTFS-RT bindings. Must be compatible with
                           those generated by protobufjs.
Examples:
    curl 'https://example.org/gtfs-rt.pbf' | print-gtfs-rt

Contributing

If you have a question or have difficulties using print-gtfs-rt-cli, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.

Example feed

The example feed is taken from the Swiss open GTFS-RT feed, licensed under their open data license.

About

Read a GTFS Realtime feed from stdin, print human-readable or as JSON.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published