Extracting multiple agencies from a GTFS file

Viewed 27

I can use the transitland-lib to extract a single agency from a GTFS file and create a new one like this:

sudo ./transitland-linux extract -extract-agency 53 germany.gtfs.zip my_agency.gtfs.zip

Is there a convenient way of extracting multiple agencies in a similar fashion? So e.g. can I somehow use the extract command somewhat like this:

sudo ./transitland-linux extract -extract-agency 53,54 germany.gtfs.zip my_agency.gtfs.zip

.. to create a new GTFS file that contains only agency 53 and 54?

2 Answers

You should be able to extract multiple agencies by chaining multiple arguments, like so:

sudo ./transitland-linux extract -extract-agency 53 -extract-agency 54 germany.gtfs.zip my_agency.gtfs.zip


P.S. Glad you are making good use of transitland-lib!

Related