public-transport/gtfs-via-postgres

Add support for fare_leg_rules.txt

Open

#42 opened on 2023年7月8日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)JavaScript (21 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (141 stars)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド