Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new RawGTFS::SourceFormat field and strip file paths. #147

Merged
merged 2 commits into from
Nov 8, 2023

Commits on Nov 8, 2023

  1. Add a new RawGTFS::SourceFormat field and strip file paths.

    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 the `RawGTFS`. This
    way, if the data were were from a directory with:
    `RawGTFS::new("some/path/to/read")`, the `files` will contains
    `stops.txt` and not `some/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).
    antoine-de committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    257c7ec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c4cfbe6 View commit details
    Browse the repository at this point in the history