public-transport/gtfs-via-postgres

Add support for fare_leg_rules.txt

Open

#42 建立於 2023年7月8日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)JavaScript (21 fork)github user discovery
enhancementhelp wanted

倉庫指標

Star
 (141 star)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南