The departures API call isn't always reliable. This function will take a
tibble of parsed departures content and filter it according to the following
inputs, if they are not NULL
:
Only departures after the given departs
Only departures on the given route ID
The next max_results departures per route ID, if max_results
is not
0.
filter_departures(parsed, departs = NULL, route_id = NULL, max_results = NULL)
A filtered tibble.
A tibble of parsed departures content.
POSIXct in the "Australia/Melbourne" time zone.
Integer.
Integer max results.