istvanfedak/mmm-miami-transit

[Question] Transit for my city?

dxfan227 opened this issue · 1 comments

Hello! @istvanfedak

Hope this is an okay way to get in touch. I am interested in creating my own transit module for my magic mirror, with my specific city. At first I would be happy with simply the next time the bus is going to show up/how late it might be in either direction.

Building upon that would be a small map with a moving real time bus to see where it is at on the map.

My city offers a GTFS zip file for transit, but I am not sure if it offers real time data. I do notice my Lyft App and Transit App on iPhone do show busses in real time so I am hopefull it exists.

I understand its a huge undertaking, and by no means to expect anyone to walk me through every single step of this ( unless they want to be awesome!) but what would a good place be to start? I have no experience! I am technical enough to get in trouble ( magic mirror set up, modules installed, some minor configuration modification etc) but no formal background in python/javascript...etc.

Thank you for any help you can provide on this

@dxfan227 Pardon the late response I've been taking a break from GitHub!

There should be a way for you to access the live data. I went on the Miami transits website, looked at their source code and saw that they had an XML API. I used Postman to call the API and learn how the data was being returned before I build the module.

I would google something like " public transportation API". You might have to register to get an API Key to use it.

As for your other question, I would research how to use Open Street Map to render you city's map and overlay the bus stops over it. Or you could do a "transit map" where its not geographically accurate.

Feel free to use my module as a reference and read up on how to use the node_helper.js to do background calculations.

Good luck! Let me know if you have any other questions.