|
2 months ago | |
---|---|---|
mtd | 2 years ago | |
.gitignore | 2 months ago | |
.gitlab-ci.yml | 8 months ago | |
BusRoutes.java | 2 months ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
br_rt_departures.js | 1 year ago | |
bus-1.jpg | 2 years ago | |
bus_routes.css | 2 months ago | |
bus_routes.html | 2 months ago | |
bus_routes.js | 2 months ago | |
csp.js | 2 months ago | |
footer.html | 1 year ago | |
frontpage.css | 2 months ago | |
frontpage.js | 2 months ago | |
header.html | 3 years ago | |
httpd.conf | 2 years ago | |
make-devel.sh | 2 months ago | |
package-lock.json | 2 months ago | |
script.sh | 2 months ago | |
webpack.config.js | 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.