Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junosuarez/chatt-gtfs-cleanup
scripts for cleaning up carta gtfs data
https://github.com/junosuarez/chatt-gtfs-cleanup
Last synced: 8 days ago
JSON representation
scripts for cleaning up carta gtfs data
- Host: GitHub
- URL: https://github.com/junosuarez/chatt-gtfs-cleanup
- Owner: junosuarez
- Created: 2014-07-16T20:31:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-16T22:32:00.000Z (over 10 years ago)
- Last Synced: 2024-04-09T23:08:38.295Z (7 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chatt-gtfs-cleanup
scripts to clean up CARTA's GTFS data feed
## Installation
Required: [Node.js](http://nodejs.org/)
From a command line, run:
```console
npm install -g jden/chatt-gtfs-cleanup
```You can now run `chatt-gtfs-cleanup` as a command to execute this script:
## Upgrading
To upgrade to a new version of this script, run:
```console
$ npm update -g jden/chatt-gtfs-cleanup
```## Usage
```
chatt-gtfs-cleanup --input --outputExamples:
node cli --input c:/gtfs --output c:/gtfs_clean Runs the clean up scripts on data in c:/gtfs.
New files will be written to c:/gtfs_bakOptions:
-i, --input Specify the input directory [required]
-o, --output Specify the output directory [required]
```## What it does
This script attempts to automatically correct some validation errors in the GTFS files generated by BusTools.
### Route Short Name Is Contained In Long Name
Removes duplicated information in routes.txt### Invalid values in shape_pt_sequence
Fixes improperly formatted values in shapes.txt### Trip Headsign Contains Route Short Name
### Trip Headsign Contains Route Long Name
Removes duplicated information in trips.txt## Troubleshooting
### No output is displayed
If there are no corrections made, nothing will print in the script output. Check the files in the destination directory; they should be present & valid.### Files missing in output directory
The script only copies over files which it knows how to clean up. You can copy over the rest of the files which make up a GTFS feed from the input directory unchanged.## Contact
Jason Denizac