On get_route_frequency_hourly(), it is conceptually wrong to assume that the first stop has stop_sequence=1. According to the documentation it can start at any number and does not have to be consecutive. The only requirement is for it to increase along the sequence.
|
stop_times = stop_times |> # Only departures from origin (first stop) |
|
filter(stop_sequence == 1) |

On
get_route_frequency_hourly(), it is conceptually wrong to assume that the first stop hasstop_sequence=1. According to the documentation it can start at any number and does not have to be consecutive. The only requirement is for it to increase along the sequence.GTFShift/R/get_route_frequency_hourly.R
Lines 82 to 83 in 389d7cd