UrbanAnalyst / gtfsrouter

Routing and analysis engine for GTFS (General Transit Feed Specification) data
https://urbananalyst.github.io/gtfsrouter/
82 stars 17 forks source link

vbb.zip does not appear to be a GTFS file while it contains all the tables required #21

Closed chinhqho closed 4 years ago

chinhqho commented 4 years ago

Appear there is an issue with the dev version which through me an error "the vbb.zip does not appear to be a GTFS file. " filename <- list.files (getwd(), full.names = TRUE, pattern = "vbb.zip") filename #"M:/Projects/GTFS/gtfsRouter/vbb.zip" g <- extract_gtfs(filename) 'got error here: Error in extract_gtfs(filename) : M:/Projects/GTFS/gtfsRouter/vbb.zip does not appear to be a GTFS file; it must minimally contain routes, stops, stop_times, trips

mpadge commented 4 years ago

Thanks for the input, but I can't reproduce that error. Everything works fine for me:

library(gtfsrouter)
packageVersion ("gtfsrouter")
#> [1] '0.0.1.3'
berlin_gtfs_to_zip()
f <- file.path (tempdir (), "vbb.zip")
gtfs <- extract_gtfs (f)
gtfs <- gtfs_timetable (gtfs)
#> Day not specified; extracting timetable for Sunday

Created on 2020-02-09 by the reprex package (v0.3.0)

Try copying the above code to your clipboard, then run reprex::reprex() to generate formatted reproducible html output like the above. If the error still appears, then please past the reprex-formatted output here and re-open the issue. In the meantime, I'll close because I can't reproduce it.

chinhqho commented 4 years ago

Thanks @polettif . I re-install the package and it now can read the GTFS file. But I encountered another issue with index out of bound when GTFS bundle does not include the optional file transfers.txt. I have opened an issue.