Offer search suggestions if their town is not found
Opened this issue · 0 comments
AllenEllis commented
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