feat: add NYC buses and Westchester Bee-Line #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bus-feeds"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a
busroute mode and two feeds. Stacked on #2 (base isperf-typed-feeds) - the old loader cannot hold these feeds.Feeds
scripts/merge-gtfs.mjsmerges the six into onebusfeed (keyed files deduped, trips/stop_times streamed and concatenated).fetch-gtfs.shnow also dropsshapes.txt, which the server never reads and which is most of the unpacked size.Fares
BM/QM/BxM/Xroutes) upgrades that single fare to $7Verification
scripts/bench.ts(included) loads the feeds and plans a fixed set of trips. With all four feeds: 16,911 stations, 293,660 trips, 248MB heap.BX12+at $3.00 (one fare across subway and bus)X38express option priced at $7.00Q06/Q3Known follow-up
Startup is now ~130s and a query up to ~12s with buses enabled. That is loading and scan cost, not correctness, and I would rather fix it in its own PR than inflate this one: the obvious moves are caching the parsed feeds to a binary file at build time (so the container starts in seconds) and restricting the scan to stations near the corridor.