Amazon Alexa skill that provides real time information on Madrid's public transportation
Alexa open Madrid Transport
You will need to know the stop identifier that each bus stop has
incoming buses at stop {stop_id}
next buses at stop {stop_id}
bus stop {stop_id}
We use Madrid's EMT (public transport org) public APIs to obtain the information about Bus, Subway and Train routes.
http://opendata.emtmadrid.es/Servicios-web.aspx?lang=en-GB
Install the required dependencies via npm
or yarn
.
npm install
Launch the madrid-emt-skill
passing as ENV vars the required Application ID and Key provided by the EMT API.
EMT_CLIENT_ID=my_client_id EMT_KEY=my_key node src/madrid-emt-skill
Some useful links with the documentation and related projects
Amazon Alexa's skills kit https://developer.amazon.com/alexa-skills-kit/
Big Nerd Ranch's Developing Alexa Skill Solutions course https://github.com/bignerdranch/developing-alexa-skills-solutions
Library that simplifies the use of EMT open data API https://github.com/Lorengamboa/EMT-library