gtfs-analyze

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2023 License: MIT Imports: 1 Imported by: 0

README

gtfs-analyze

gtfs-analyze is a command line tool to analyze General Transit Feed Specification (GTFS) data. I'm learning go to implement the tool.

Usage

Right now, gtfs-analyze only has one command: store. Use it like this:

$ gtfs-analyze --log-level info store --db-path ~/Downloads/rtd.db --static-url https://www.rtd-denver.com/files/gtfs/google_transit.zip

This will download the static GTFS dataset at the provided static-url, and parse it into a SQLite database at the provided db-path. If the dataset is already found in the database, nothing will happen. Hence, you can run this command periodically to "watch" a GTFS feed, and keep all the historical data downloaded in a database.

For help, try gtfs-analyze --help.

Packages

  • core: All the core logic and database interaction of the tool
  • model: The GTFS data model
  • csv_parse: CSV parser. An excuse to learn about reflection in go
  • log: A wrapper around go's standard log package
  • cmd: All the entry commands for the CLI tool. Created by cobra

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL