This project aims to create an interactive transit map of Jersey City public transportation from GTFS data. Markers denoting transit vehicles are animated along route lines according to their GTFS schedules.
The project was started during the #hackforchange hackathon 2014.
The code is essentially a clone of https://github.com/vasile/transit-map, plus GTFS data.
Currently, the map shows MTA Metro North data. Yes, NYC instead of JC. This is because we had the following problems with JC GTFS data.
-
a required GTFS file,
calendar.txt
, is missing- this file tells us what days of week and during which date window each service is active
-
some timestamps in
stop_times.txt
don't make sense, e.g.,27:26:00
-
route_short_name
s inroutes.txt
are all empty strings; they should contain the same info as displayed on train terminals, or some other short identifier -
we could also filter the data to display only trains that stop in JC
-
we could not get started with this during the hackathon due to the sheer size of the GTFS export (224 MB), but we should try again after filtering out buses that don't stop in JC
-
a required GTFS file,
calendar.txt
, is missing- this file tells us what days of week and during which date window each service is active
-
we used a stale GTFS export (from January 2014) since we could not find anything made available directly by NY Waterway
- the link http://www.gtfs-data-exchange.com/agency/ny-waterway/latest.zip sounded promising, but it got us metro north data instead!
-
some timestamp data in
stop_times.txt
contains spaces, e.g.,09:20:00 ,09:20:00
- no GTFS data available
To run the current visualization locally:
-
run a web server (e.g., Apache)
-
configure it to serve the
index.html
page from the repo
To import new GTFS data:
- follow the readme at https://github.com/vasile/GTFS-viz (allow yourself 2-3 hours for this...)