Skip to content

Action on Google to check arrival times of buses in the city of Rosario

License

Notifications You must be signed in to change notification settings

ignaeche/colectivos-rosario-aog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Colectivos Rosario

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

Features

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"

Built using

  • 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...

Setup

Actions on Google Console

  1. Create a new project in the Actions on Google Console.
  2. Create a new Dialogflow agent.
  3. Under settings, go to Export and Import, select Restore from ZIP and upload the agent included in this repository.
  4. Under Fulfillment > Webhook use the URL of your cloud function (created in the next section).

Firebase Cloud Functions

  1. Install Node.js and npm
  2. Install the Firebase CLI
npm install -g firebase-tools
  1. Clone this repository.
  2. Login to Firebase and initialize the project.
firebase login
firebase init
  1. Deploy and get the URL of your cloud function and paste it in the Fulfillment > Webhook section of Dialogflow.
npm run deploy

Test your action

  1. 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.
  2. Go to the Actions Console simulator or any device logged in with your account and test your action.

Resources

License

MIT License

About

Action on Google to check arrival times of buses in the city of Rosario

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published