filter_feed_by_area: Filter a gtfs feed so that it only contains trips that pass a...

View source: R/filters.R

filter_feed_by_areaR Documentation

Filter a gtfs feed so that it only contains trips that pass a given area

Description

Only stop_times, stops, routes, services (in calendar and calendar_dates), shapes, frequencies and transfers belonging to one of those trips are kept.

Usage

filter_feed_by_area(gtfs_obj, area)

Arguments

gtfs_obj

gtfs feed (tidygtfs object)

area

all trips passing through this area are kept. Either a bounding box (numeric vector with xmin, ymin, xmax, ymax) or a sf object.

Value

tidygtfs object with filtered tables

See Also

filter_feed_by_stops, filter_feed_by_trips, filter_feed_by_date


tidytransit documentation built on Oct. 18, 2024, 5:13 p.m.