From 32161dfd6817416d9f016e546a7e25d3efaa55e3 Mon Sep 17 00:00:00 2001 From: Caleb Denio Date: Sun, 3 Nov 2024 15:19:53 -0500 Subject: [PATCH] GTFS download script --- gtfs-importer/download-gtfs.sh | 4 ++++ gtfs-importer/index.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 gtfs-importer/download-gtfs.sh diff --git a/gtfs-importer/download-gtfs.sh b/gtfs-importer/download-gtfs.sh new file mode 100755 index 0000000..fee6d51 --- /dev/null +++ b/gtfs-importer/download-gtfs.sh @@ -0,0 +1,4 @@ +mkdir -p gtfs/ + +wget https://cdn.mbta.com/MBTA_GTFS.zip --max-redirect=0 -O gtfs/mbta.zip +wget https://www.transitchicago.com/downloads/sch_data/google_transit.zip --max-redirect=0 -O gtfs/cta.zip \ No newline at end of file diff --git a/gtfs-importer/index.js b/gtfs-importer/index.js index 3ab012d..3e2ccdb 100644 --- a/gtfs-importer/index.js +++ b/gtfs-importer/index.js @@ -8,7 +8,7 @@ await importGtfs("Boston", { }); // await importGtfs("Chicago", { -// allowedRouteTypes: ["0", "1"], +// allowedRouteTypes: [SUBWAY], // sourceFeed: "gtfs/cta.zip", // outputFile: "cities/chicago.json", // processStationNames: (name) =>