On this page
What this issue is
A store locator lets visitors type a postcode, ZIP code, city or address and see your nearest locations. The issue is when it answers "No results found" (or just shows an empty list) even though you have a location nearby.
Most locators work in two steps. First, geocoding turns the text into latitude and longitude. Second, the tool compares those coordinates with your saved locations and returns the ones inside a search radius. A failure in either step, or in the data itself, gives an empty result.
Why it costs you leads or sales
People who use a locator are close to acting: they want to visit, call or book. An empty result reads as "there is no store near me", so many will leave rather than try again. You lose walk-ins, calls, bookings and click-and-collect orders, and you will not see it in your reports because nothing errors visibly.
- Visitor types postcodeValid input for a real area
- GeocodingAPI key blocked or address not recognised
- Nearest locationsNo coordinates to compare
- Directions, call or bookingNever reached
The search text never becomes coordinates, so every later step is lost.
Example: illustrative numbers only. Searches that return results lead to more contacts than searches that return nothing.
How to check if your site has it
Run a short test list on desktop and mobile. Do not only test your own head office postcode, because that is the one most likely to work.
- Search a full postcode or ZIP code next to each location
- Search a partial postcode (for example the first half of a UK postcode)
- Search a city name and a small town
- Search a full street address
- Search a place with no location within 50 miles and check the message is helpful
- Try the "use my location" button and deny the browser permission prompt
- Search with different letter case and extra spaces
- Repeat on a phone
| What you see | Likely cause |
|---|---|
| Console: REQUEST_DENIED or ApiNotActivatedMapError | Geocoding API not enabled for the key, or billing not set up |
| Console: RefererNotAllowedMapError | API key restricted to other domains |
| Geocode request returns ZERO_RESULTS | Search text not recognised, often partial postcodes or wrong country |
| Geocode works, list is empty | Radius too small, filters on, or locations missing coordinates |
| Only some areas fail | Data issue for specific locations, or country restriction |
| Nothing is requested at all | JavaScript error or the search button is not wired up |
How to fix it
Find which step fails
Use the Network tab. If the geocoding request fails, fix the key or settings. If it succeeds but the list is empty, check radius, filters and data.
Fix the API key
If you use Google Maps, open Google Cloud Console, check that the Geocoding API (and Places API if used) is enabled, billing is active and the key's website restrictions include your live domain and www version.
Widen the radius
Set a larger default radius, or expand automatically until at least one result is found. Show the nearest location even if it is far away.
Remove filters that hide everything
Check default filters such as category, open now or service type. A filter with no matching locations returns an empty list.
Repair location data
Make sure each location has a valid address and latitude and longitude, and a published status. Re-geocode any records with blank or 0,0 coordinates.
Set the country
If searches are biased or limited to the wrong country, change the country setting so local postcode formats are understood.
Add a useful empty state
If there truly is nothing nearby, show your nearest location, a phone number, or a contact form instead of a blank page.
Check the locator plugin settings
Plugins such as WP Store Locator or Store Locator Plus have settings for the API keys, default radius, search results limit and country. Menu names vary by plugin.
Check each location
Open each location entry and confirm the address and coordinates are filled in and the post is published.
Check the app or theme section
Shopify has no built-in locator for general stores. If you use an app or a theme section, open its settings for the API key, radius and location list. Menu names depend on the app.
Check Settings > Locations
If the locator reads from Shopify locations, make sure the address is complete and the location is active.
Check for interference
Open Preview mode and look for custom HTML tags that change the search input or load a second Maps script version, which can cause key or script errors.
Check the CMS collection
If locations come from a CMS collection, confirm the latitude and longitude fields are filled and items are published, not drafts.
Check the embed code
Open the embed element and check the API key and its domain restrictions.
Check any custom code or third-party widget
GoHighLevel pages usually use an embedded widget or custom code for locators. Check its key, domain restrictions and location data in the widget's own settings.
Check the app or dataset
Open the locator app settings or the connected content collection and confirm addresses and coordinates are present and published.
Check the embed or third-party app
Squarespace has no built-in search locator, so check the code block or embedded service for its key and location data.
Handle zero results in code
Check the geocoder status and fall back to a wider search, as in the snippet below.
const geocoder = new google.maps.Geocoder();
function search(text) {
geocoder.geocode({ address: text, region: 'gb' }, (results, status) => {
if (status !== 'OK' || !results.length) {
console.warn('Geocode failed:', status);
showMessage('We could not find that place. Try a postcode or city, or call us.');
return;
}
const point = results[0].geometry.location;
let radiusKm = 10;
let found = findLocations(point, radiusKm);
while (!found.length && radiusKm < 200) {
radiusKm *= 2;
found = findLocations(point, radiusKm);
}
render(found);
});
}How to confirm it's fixed
Repeat the full test list from the check section on desktop and mobile, using an incognito window so cached data does not hide problems. Confirm the Network tab shows successful geocoding requests and the Console is free of Maps errors. Then check that a location near each address appears first in the list.
Broken
- Valid postcode shows "No results found"
- Console shows REQUEST_DENIED
- Visitors leave without a location
Fixed
- Postcode, city and address searches return the nearest locations
- Radius widens when nothing is close
- Empty state offers a phone number or contact form
How to prevent it happening again
- Re-run the test list after every theme, plugin or domain change
- Whenever you add a location, check it appears in a search
- Keep billing active and set budget alerts on your Maps API account
- Restrict the API key to your domains, and update the list when you add a domain
- Keep a note of which test searches should return which locations
- Review the locator monthly, and after any seasonal opening or closing
How FunnelGuard handles this
FunnelGuard does not check this yet. Testing a locator with a real search and confirming results come back is a possible future check, but it is not built today.
What FunnelGuard does do is run your real customer journeys, such as lead forms, checkouts and booking or chat buttons, on a schedule and check each step, so a broken page or button on those paths is caught. A locator is not one of the checks, so keep your own routine. Put a monthly reminder in your calendar to run the test list, or use a general uptime or scripted browser tool to run a search and look for result text. A free read-only audit of your site is also available.
Questions people ask
Why does my store locator say no results found?
Usually the search text could not be geocoded, the radius or filters exclude every location, or your locations lack coordinates. Check the browser Network and Console tabs to see which step fails, then fix the API key, radius or data.
Why is my store locator not working with postcodes or ZIP codes?
The geocoder may not recognise partial codes, or the country setting may be wrong. Set the correct country or region, and test both full and partial codes.
How do I fix REQUEST_DENIED in a Google Maps store locator?
Open Google Cloud Console and enable the Geocoding API for your project. Make sure billing is active, and check the key's website restrictions include your live domain.
What should a store locator show when no store is nearby?
Show the nearest location even if far away, plus a phone number or contact form. A blank list tells visitors you have nothing for them.
Why does my locator work for some areas but not others?
Locations in those areas may have missing coordinates or be unpublished, or the radius may be too small for sparse areas. Check the data for the closest locations to the failing search.
How often should I test my store locator?
Test it after every site, plugin, domain or API change, and at least monthly. Also test when you add or remove a location.
Can FunnelGuard monitor my store locator search?
Not yet. A locator search check is a possible future addition. Until then, test it manually or with a general scripted browser tool.