Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 992 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 992 Bytes

The basics of processing GTFS with the OneBusAway GTFS Transformer CLI

Usage

  1. Move into this directory cd learnyougtfs/transformer

  2. Run transformer (full documentation is here)

  • java -jar -Xmx4G -server onebusaway-gtfs-transformer-cli-1.3.3.jar --transform=match.json ../data/google_transit.zip ../data/gtfs_out.zip

Examples

To change the transformations you perform on your gtfs feed, open match.json and change the arguments to suit your needs.

Here are some examples (use one at a time):

{"op":"retain", "match":{"file":"routes.txt", "route_short_name":"RED"}}

{"op":"retain", "match":{"file":"trips.txt", "trip_id":"2139539"}}

{"op":"retain", "match":{"file":"trips.txt", "trip_id":"2139539"}, "retainBlocks":false}