MMM-MyTTC (Toronto Transit)
This is my first module from scratch, and I’m pretty proud of it! If shows you how long you’ll need to wait for the next bus or streetcar to arrive at a particular stop. It shows up to the next 3 vehicles.
It currently doesn’t provide subway times as they aren’t available in TTC’s public API. Also of note is that if a particular route that you’ve specified isn’t currently running (e.g.: Overnight route, downtown express route, etc.) it will be hidden from display.
Routes are colour-coded based on their type, and should match what you see on TTC.ca (regular routes are red, express routes are green, overnight routes are blue and white, etc.).
To all my fellow Torontonians, enjoy!
@lucallmon It uses the NextBus API. There are a bunch of transit systems across North America that use it. Here’s the list:
I see DC Ciculator and DC Streetcar in the list… it would be fairly trivial to get this to work for them. That said, I’ve gone a bit further to tailor this for TTC. For example, I’ve added extra logic to color code the routes based on TTC’s naming scheme, and the streetcar icon is actually modeled after a Toronto streetcar :)
I could probably make a generic version of the module to support any of the agencies in the list above.
maybe it will help.