Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to filter predictions by route #67

Closed
barbeau opened this issue May 10, 2016 · 2 comments
Closed

Add ability to filter predictions by route #67

barbeau opened this issue May 10, 2016 · 2 comments
Milestone

Comments

@barbeau
Copy link
Member

barbeau commented May 10, 2016

Summary:

From user feedback in beta (#65):

  • My bus stop (#700) is one of the busier ones and the list is daunting – it is possible to add bus filters (only 545 and 268 for example)?
  • Wondering if the skill could/should support other types of utterances, not just the no-intent ones. For example, I’d like to ask “ask OneBusAway when is the next 8 bus coming” so that it doesn’t give me the times of arrivals for other lines I don’t use. My stop only has two bus lines, but I think this could be very useful for users who frequent a bus stop with multiple bus lines.

Steps to reproduce:

Set the city to any city (e.g., Tampa), and with a busy stop (e.g, a transit center such as 6497).

Expected behavior:

Have some ability to filter which routes arrival information is returned for

Observed behavior:

All arrivals are returned

Device:

Amazon Echo

@barbeau
Copy link
Member Author

barbeau commented Dec 1, 2016

Reviewing user reviews on Amazon for the skill, this is definitely the number one requested feature. We could implement this similar to how stop ID collisions are implemented when setting the stop ID (#53, PR at #83).

For example, if you say "Alexa, ask OneBusAway to filter my routes", a response could be something like:

You are setting a route filter for stop 6497.

...and then loop through all routes serving that stop:

Do you want to hear arrivals for Route 5?

...and the user could answer yes or no.

I'm open to better options if anyone else has ideas. Route IDs can be alphanumeric, and we don't know all possible values at build time, so we can't ask the user to specify them by saying the ID.

Another question is if we allow users to filter at the trip headsign level, so "Route 5 - South to Downtown" incoming to a stop vs. "Route 5 - North to UATC" for departures outbound - this is particularly relevant at transit centers.

@barbeau barbeau changed the title Add ability to filter arrivals by route Add ability to filter predictions by route Feb 23, 2017
@barbeau
Copy link
Member Author

barbeau commented Feb 23, 2017

I'm working on this.

@barbeau barbeau closed this as completed in 1c0514c Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant