library(gtfsrouter)
gtfs <- extract_gtfs ("vbb.zip") # local Berlin VBB feed
gtfs <- gtfs_timetable (gtfs)
#> Day not specified; extracting timetable for Wednesday
set.seed (3)
from <- sample (gtfs$stops$stop_name, 1)
to <- sample (gtfs$stops$stop_name, 1)
message (from, " -> ", to)
#> Frankfurt (Oder), EuroCamp -> Groß Fredenwalde
gtfs_route (gtfs, from = from, to = to)
#> Error in station_name_to_ids(from, gtfs_cp): Frankfurt (Oder), EuroCamp does not match any stations
plus solve this issue:
Created on 2020-06-17 by the reprex package (v0.3.0)
It's in the
stops
table, so has to be recongised as a station.