Expands each entry of a frequencies table into its departures, every
headway_secs from start_time until (but not including) end_time, as
required by the GTFS specification. An entry whose start_time and
end_time are equal generates a single departure. Only the unique
departures of each trip are kept. Raises an error if any entry is invalid.
get_frequencies_departures(freqs)A data.table with the columns trip_id and departure_secs.
A data.table with the columns trip_id, start_time_secs,
end_time_secs and headway_secs (all but trip_id integers).