Closed antoine-de closed 10 months ago
Note: I did not bump the version, I plan to add another PR bumping a dependency and removing some warnings
Note: I added a test to make it explicit that subdirectory does not work when reading from a path (like I though it would :grin: )
The new SourceFormat store the fact that the GTFS has been read from a directory or a zip.
Also strip the base path in the
files
field of theRawGTFS
. This way, if the data were were from a directory with:RawGTFS::new("some/path/to/read")
, thefiles
will containsstops.txt
and notsome/path/to/read/stops.txt
. It's more consistent to the way it will be if the data is read from a zip (and makes it possible to know if the data were in a subfolder).