/All-Aboard

Almost-realtime streaming APIs for train departure statuses

Primary LanguageScala

This is a streaming server that lazily polls train status services and broadcasts updates out to any listeners. To try it, you'll need to have sbt installed. Then, form the project directory:

$ sbt update run

This will display a message if the server starts successfully. In a second terminal window:

curl -i http://127.0.0.1:7979/njt/ny

You should see NJ Transit and Amtrak departures from Penn Station, with changes (delays, boarding, etc) streamed out within ten seconds of them being posted to NJ Transit's departures page.