powered by
Updates a GTFS feed filtering only the routes, shapes, trips, stops, agencies and services that are active within a given period of the day.
filter_day_period(gtfs, period_start = "00:00:01", period_end = "23:59:59")
A filtered GTFS data.
A GTFS data.
A string of type "hh:mm" indicating start of the period (defaults to "00:00:01")
A string of type "hh:mm" indicating the end of the period (defaults to "23:59:59")
# read gtfs data poa <- read_gtfs(system.file("extdata/poa.zip", package = "gtfs2gps")) # filter gtfs data poa_f <- filter_day_period(poa, period_start = "10:00", period_end = "10:20")
Run the code above in your browser using DataLab