powered by
Get all trip shapes for given trip ids
get_trip_geometry(gtfs_sf_obj, trip_ids)
an sf dataframe for gtfs routes with a row/linestring for each trip
tidytransit gtfs object with sf data frames
trip_ids to extract shapes
data(gtfs_duke) gtfs_duke <- gtfs_as_sf(gtfs_duke) trips_sf <- get_trip_geometry(gtfs_duke, c("t_726295_b_19493_tn_41", "t_726295_b_19493_tn_40")) plot(trips_sf[1,"shape_id"])
Run the code above in your browser using DataLab