abetusk / bostontraintrack

Simple real time tracking of the Boston Red, Orange and Blue metro lines using Open Street Map (via OpenLayers) and the MBTA's real time metro tracking. (service is now shut down)
GNU Affero General Public License v3.0
32 stars 6 forks source link

Communter rails #11

Closed abetusk closed 10 years ago

abetusk commented 10 years ago

Add real time commuter rail information.

Reference:

Friss commented 10 years ago

Shouldn't be too hard to add in seems like a straight forward parse compared to the buses and at least this time it comes in JSON.

abetusk commented 10 years ago

Agreed. I think having a separate server, like the bus server, is the best way to go. It looks like there are 12 commuter lines, so I would suggest polling each one serially at 10 second intervals (so 120 seconds to make a complete loop).

I'm thinking of using the Train Icon (from Google Map Icons) with the usual direction indicators.

I'll dive into making the icons. If you want to make the server, let me know and I'll assign you. Otherwise I'll work on it.

abetusk commented 10 years ago

I've made an initial commuter rail server which still needs some testing.

I've also made another toggle button to enable the commuter rails and the appropriate commuter rail icons. The toggle button still isn't hooked up yet and the bostontriantrack.js hasn't been updated to receive commuter rail information.