Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Store locator returns no results: how to find and fix it

CNV-334Medium impactCould addBy FunnelGuardPublished Updated
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.

Where a locator search breaks
  1. Visitor types postcodeValid input for a real area
  2. GeocodingAPI key blocked or address not recognised
  3. Nearest locationsNo coordinates to compare
  4. Directions, call or bookingNever reached

The search text never becomes coordinates, so every later step is lost.

Visitors who go on to contact a locationExample numbers
Visitors who go on to contact a location (example)Search with results: 35 %; Search with no results: 4 %01327354Search with resultsSearch with no results%

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.

Locator test list
  • 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 common errors usually mean
What you seeLikely cause
Console: REQUEST_DENIED or ApiNotActivatedMapErrorGeocoding API not enabled for the key, or billing not set up
Console: RefererNotAllowedMapErrorAPI key restricted to other domains
Geocode request returns ZERO_RESULTSSearch text not recognised, often partial postcodes or wrong country
Geocode works, list is emptyRadius too small, filters on, or locations missing coordinates
Only some areas failData issue for specific locations, or country restriction
Nothing is requested at allJavaScript error or the search button is not wired up

How to fix it

Fix an empty locator
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. Set the country

    If searches are biased or limited to the wrong country, change the country setting so local postcode formats are understood.

  7. 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.

Where to change it by platform
  1. 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.

  2. Check each location

    Open each location entry and confirm the address and coordinates are filled in and the post is published.

Geocode a search and handle empty results (Google Maps JavaScript API)javascript
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.

Locator behaviour

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

Prevention habits
  • 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.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.