I\'m working with some GTFS data and would like to be able to create a list of all stops associated served by a route. I don\'t really understand how to do with with GTFS da
If you're working in R you could do this to find routes that stop at your target destination X:
require(dplyr)
routesX <- routes %>%
left_join(trips %>% select(trip_id, route_id, shape_id)) %>%
left_join(stop_times %>% select(trip_id, stop_id)) %>%
semi_join(stops %>% filter(grepl('X', stop_name, ignore.case = T)), by = c('stop_id' = 'stop_code')) %>%
select(names(routes), shape_id) %>%
unique