GTFS Realtime Convertors > WMATA BusPositions API to GTFS-realtime
Java-based tool to convert from WMATA's BusPositions API and Alert RSS feeds from MetroAlerts to GTFS-realtime TripUpdates, VehiclePositions, and Alerts feeds.
wmata-gtfsrealtime
GTFS-realtime TripUpdate, VehiclePosition, and Alert feeds for WMATA. The TripUpdate and VehiclePosition feeds are produced using WMATA's BusPositions API, while the Alert feed uses RSS feeds from MetroAlerts.
Building
Build with Maven:
mvn clean install
Running
Copy config.sample to config, and edit to set values for WMATA.key and GTFS.path. You may also need to update WMATA.agencyID, WMATA.badRoutes and WMATA.staticMappings, but the defaults should be fine.
Then, run with:
java -jar target/wmata-gtfsrealtime-1.0-SNAPSHOT-withAllDependencies.jar --config config
Visit http://localhost:9000/tripUpdates?debug to view the generated feed.