To filter gtfs files by a polygon. It's written in R and uses the gtfsTools library. We use it for OpenTrippPlanner
- Copy the GTFS files you want to filter to this project and either name it
de.gtfs.zipor change the path ingtfs_filter.R - Copy the polygon as GeoJson to this project or use the already existing. You can download GeoJSON polygons on this page. You may want tho change the path in
gtfs_filter.R. By default it uses wohle BW.
Locally I recommend to use just KVV/Karlsruhe date. Too much data will need to mach memory. Use server for big data.
docker build -t gtfsFilter .docker run -v $(pwd):/usr/local/src/myscripts