This package contains JSON exports of the static GTFS data. It is updated once per day.
npm install mta-gtfs-staticThis package contains JSON exports of the static GTFS data. It is updated once per day.
You can either import either the JS or JSON files. Depending on your needs.
``js``
import subway_routes from "mta-gtfs-static/gtfs_js/subway/routes.js";
import subway_routes from "mta-gtfs-static/gtfs_json/subway/routes.js";