Colectivos Rosario (also known as Rosario Buses) is an Action on Google that allows you to search for arrival times for buses in the city of Rosario, Santa Fe, Argentina using the Google Assistant.
Read in Spanish
You can, for example:
- Search arrival times by stop, corner or closest stop:
- "When does the 102 arrive to stop 1587?"
- "When does the 102 arrive to Ayacucho and Montevideo?"
- "When does the 102 arrive to the closest stop?"
- List stops near your location
- "Stops near me"
- Get information on a certain stop
- "Info on stop 1587"
- Dialogflow
- Firebase
- Cloud Functions for the webhook in Dialogflow
- Cloud Firestore to store bus, street and stop information
- Realtime Database for geoqueries (since geoqueries are not exposed in Firestore at the time of development)
- TypeScript
- i18next for localization
- and more...
- Create a new project in the Actions on Google Console.
- Create a new Dialogflow agent.
- Under settings, go to Export and Import, select Restore from ZIP and upload the agent included in this repository.
- Under Fulfillment > Webhook use the URL of your cloud function (created in the next section).
- Install Node.js and npm
- Install the Firebase CLI
npm install -g firebase-tools
- Clone this repository.
- Login to Firebase and initialize the project.
firebase login
firebase init
- Deploy and get the URL of your cloud function and paste it in the Fulfillment > Webhook section of Dialogflow.
npm run deploy
- Make sure the agent is propagated to the Actions Console. In the Dialogflow console, under Integrations changes to your agent can be set to automatically propagate.
- Go to the Actions Console simulator or any device logged in with your account and test your action.