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

Offer search suggestions if their town is not found #3

Open
AllenEllis opened this issue Jan 4, 2020 · 0 comments
Open

Offer search suggestions if their town is not found #3

AllenEllis opened this issue Jan 4, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@AllenEllis
Copy link
Owner

The app currently fails if it can't find a town matching their search query. Example:

Sorry, we could not find a town named Oroville washington

In this case, the code should remove the last word and attempt searching again, presenting this list of choices to them on the error screen. In this case, by stripping the last word and searching for simply "Oroville" would return the following choices from our API provider, one of which is the correct answer:

Oroville, CA
Oroville East, CA
Oroville, WA
South Oroville, CA

@AllenEllis AllenEllis added the enhancement New feature or request label Jan 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant