We’re having a strange and inconsistent issue with the search field on the GeoLocations extension. A little bit about our setup:
- Radius set to 60 miles in HP settings
- Regions enabled
- Google API
If I perform a new search, for example, I type in “Santa Clar” and then use the autocomplete dropdown to select the right location, this will update the search box to “Santa Clara, Washington County, Utah, United States”. If I then hit the search button to perform the search, the search results seem to only include results set within that specific region. It seems to ignore our radius preferences.
However, if I use U.S. zip code instead, so if I start typing “84765” and then use the autocomplete dropdown to select the city, it will change the search box field text to “Santa Clara, Washington County, Utah, United States” (notice it’s the same), but this time, when I hit the search button, the results correctly return everything within that city but also with the 60 mile radius.
It’s a bit confusing because as far as I can tell, it should be searching on the same data, but the autocomplete box must give the search form separate instructions behind the scenes?
But how can we fix this? How can we make sure that when users search for a city by name that the results include not just that specific region but also the 60 mile radius of that query?