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 support for fare_leg_rules.txt #42

Open
langbein-daniel opened this issue Jul 8, 2023 · 1 comment
Open

Add support for fare_leg_rules.txt #42

langbein-daniel opened this issue Jul 8, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@langbein-daniel
Copy link
Contributor

Feature request: Support import of fare_leg_rules.txt

Please don't see this as an "urgent" feature reuqest. I just noticed, while trying to import the Finnish GTFS feed, that fare_leg_rules.txt is not supported.

As this file is optional, I think that an import should be possible after deleting it ;)


Error message:

Error: invalid/unsupported file: fare_leg_rules
    at convertGtfsToSql (/app/index.js:117:10)
    at convertGtfsToSql.next (<anonymous>)
    at pumpToNode (node:internal/streams/pipeline:133:22)
    at pipelineImpl (node:internal/streams/pipeline:373:9)
    at pipeline (node:internal/streams/pipeline:183:10)
    at Object.<anonymous> (/app/cli.js:158:1)
    at Module._compile (node:internal/modules/cjs/loader:1257:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1311:10)
    at Module.load (node:internal/modules/cjs/loader:1115:32)
    at Module._load (node:internal/modules/cjs/loader:962:12)

And these are the files from the GTFS feed:

agency.txt
calendar.txt
calendar_dates.txt
fare_leg_rules.txt
feed_info.txt
routes.txt
shapes.txt
stops.txt
stop_times.txt
transfers.txt
trips.txt
@derhuerst derhuerst added the enhancement New feature or request label Jul 8, 2023
@derhuerst
Copy link
Member

Note that you should be able to at least ignore fare_leg_rules by using the --ignore-unsupported flag:

--ignore-unsupported -u Ignore unsupported files. Default: false

@derhuerst derhuerst added the help wanted Extra attention is needed label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Development

No branches or pull requests

2 participants