You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Peter H. Jin 4a2f340aab Fix a lot of bugs, CSP-related tweaks, make all identifiers short strings 2 months ago
mtd Change URL of vehicle server (and trigger GTFS update) 2 years ago
.gitignore Fix a lot of bugs, CSP-related tweaks, make all identifiers short strings 2 months ago
.gitlab-ci.yml Update .gitlab-ci.yml 8 months ago
BusRoutes.java Fix a lot of bugs, CSP-related tweaks, make all identifiers short strings 2 months ago
LICENSE Add Apache 2.0 License 2 years ago
README.md Add JS app 2 years ago
br_rt_departures.js br_rt_departures.js: Fix error handling of missing trip block 1 year ago
bus-1.jpg Fix tables suddenly disappearing after midnight UTC, add bus image 2 years ago
bus_routes.css Fix a lot of bugs, CSP-related tweaks, make all identifiers short strings 2 months ago
bus_routes.html Fix a lot of bugs, CSP-related tweaks, make all identifiers short strings 2 months ago
bus_routes.js Fix a lot of bugs, CSP-related tweaks, make all identifiers short strings 2 months ago
csp.js Fix a lot of bugs, CSP-related tweaks, make all identifiers short strings 2 months ago
footer.html Update copyright year, trigger GTFS update 1 year ago
frontpage.css Fix a lot of bugs, CSP-related tweaks, make all identifiers short strings 2 months ago
frontpage.js Fix a lot of bugs, CSP-related tweaks, make all identifiers short strings 2 months ago
header.html Initial commit 3 years ago
httpd.conf Use webpack to combine JS files 2 years ago
make-devel.sh Fix a lot of bugs, CSP-related tweaks, make all identifiers short strings 2 months ago
package-lock.json Fix a lot of bugs, CSP-related tweaks, make all identifiers short strings 2 months ago
script.sh Fix a lot of bugs, CSP-related tweaks, make all identifiers short strings 2 months ago
webpack.config.js Use webpack to combine JS files 2 years ago

README.md

(CU)MTD Bus Routes

Interactive version: https://busroutes.peterjin.org/

Non-interactive version: https://busroutes.peterjin.org/about.html

This is a Java application plus a JavaScript web app that provides information on the various bus routes in the Champaign-Urbana area. It is largely based on MTD's GTFS feed.

The Java application (BusRoutes.java) parses each of the text files provided in the GTFS feed. Although most of the stucture and parsing is heavily MTD specific, it could probably be reasonably adapted to other mass transit systems in other places. For example, each text file is effectively a CSV file, but quotes are not yet supported because they were not present in the original files from MTD.

The Java application performs several main tasks:

  • Generate static time tables for each route.
  • Generate JSON files for each route, trip, and stop.
  • Create objects from each route, trip, and stop as part of object-oriented programming.

The web application (bus_routes.html including its CSS and JavaScript files) provides interactive information about these routes from the JSON files generated from the Java application.

License

The code base is licensed under the Apache License, version 2.0. No information about any transit system is present in any file except as to provide additional information that was not present in the GTFS feed.

MTD is a registered (?) trademark of the Champaign-Urbana Mass Transit District.