food-oasis icon indicating copy to clipboard operation
food-oasis copied to clipboard

Bug: User-submitted text address doesn’t properly resolve into an address or GPS, causing a failed search

Open fancyham opened this issue 1 year ago • 0 comments

Overview

Bug discovered while doing

  • #1668 …Entering an address or zip code into the search text field (then hitting ‘return’, not using autocomplete) often fails to resolve to a location on the map, resulting in ‘zero results’, but then a dead-end. We should provide similar addresses when needed, and at least resolve zip codes properly.

This is also related to #1115 where we would want people to be able to search for org names and addresses using the search box.

To replicate

  1. Go to http://foodoasis.la
  2. Type in 90045 (or nearly any other address), press enter (do not use the autocomplete)
  3. The problem: The zip code is not resolved to a location on the map, and there are zero results.

It seems to be that right now, the only way to get an address on the map is to choose one from autocomplete or to use the “locate me” GPS function.

Desired result

  • [ ] After typing in an address or zip code, show an error or a list of possible addresses. See Google Maps for an example of incomplete-address resolution:
  • [ ] (if possible) also support searching for known business and organization names (see #1115)
image

If this type of address resolution is not possible, we need to explicitly tell people that they must choose an autocomplete option, but this breaks with expected behavior and we would want to fix this later.

fancyham avatar May 18 '23 20:05 fancyham