View source: R/shapes_helpers.R
| prepare_trip_stops | R Documentation |
Select and prepare the stop_times of the relevant trips
prepare_trip_stops(gtfs, trip_id, with_departure = FALSE, with_row = FALSE)
gtfs |
A GTFS object. |
trip_id |
The |
with_departure |
Whether to also select the |
with_row |
Whether to also return the |
A new data.table with the trip_id, stop_id and
stop_sequence (and, if with_departure is TRUE, the
departure_time, and if with_row is TRUE, the row) of the selected
stop_times, sorted by trip_id and stop_sequence, plus the stop_lat
and stop_lon of each stop.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.