Clips the GTFS file to only include stops within the bounds object, trips that cross the boundary of the the object are truncated. Any trips that stop only once in the bounds are removed completely.

gtfs_clip(gtfs, bounds)

Arguments

gtfs

a gtfs object

bounds

an sf data frame of polygons or multi-polygons with CRS 4326