How to Add a Store Locator to WordPress Without a Google Maps API Key
November 8, 2026 · 3 min read
You want a page where visitors find your nearest location: campuses, branches, stores, clinics or dealers. You install a popular WordPress store locator plugin, and the first setup screen asks for a Google Maps API key.
This guide explains why, what the key involves, and how to build a locator without one.
Why store locators ask for an API key
Most WordPress locator plugins use Google Maps. Since 2018, Google requires every site that shows its interactive maps or looks up addresses to have:
- A Google Cloud account with a project
- The right Maps APIs switched on (usually the Maps JavaScript API and Geocoding API, sometimes Places)
- A billing account with a card on file, even if your use stays within Google's free monthly allowance
- An API key, which you should restrict to your domain so nobody else can use it on your account
None of this is hard for a developer, but it's a lot for a church, nonprofit or small business. It also means a card on file for a service you might hope never charges you.
The free alternative: OpenStreetMap and Leaflet
OpenStreetMap is a free, community-made map of the world. Leaflet is a free, open-source library for showing interactive maps on websites. Together they give you pan-and-zoom maps with pins, with no account, key or billing.
Two things to know:
- Credit the map. OpenStreetMap requires a small "© OpenStreetMap contributors" line on the map, which Leaflet adds automatically.
- Fair use. OpenStreetMap's free map images are meant for ordinary sites. A site with very heavy traffic should switch to a map provider (many have free plans) by changing the map's image address.
Several WordPress plugins use Leaflet for general maps. For a *store locator*, you also need search, distance sorting and a list. That's where most free Leaflet plugins stop.
Where the coordinates come from
Every pin needs a latitude and longitude. Google-based plugins look them up live with the Geocoding API, which is part of why they need the key.
Without a key, look them up once and store them with your locations. In Google Sheets, a free =GEOCODE() formula does this using your own Google account, with no API key or billing. How to get latitude and longitude from an address in Google Sheets has the code.
"Near me" without Google
"Sort by nearest" doesn't need Google either. The visitor's browser can share their location when they tap a button and say yes. The page then works out the distance to each location with a standard formula (the haversine formula). Done this way, the visitor's location never leaves their browser.
Searching by city or ZIP code works as a plain text search over your locations' addresses, with no lookups at all.
Keeping the list in a Google Sheet
Most locator plugins store locations inside WordPress, so every change means logging in to the admin. Keeping them in a published Google Sheet instead means:
- Anyone on your team can add a location or change hours, without a WordPress login
- The same list can feed more than one site or page
- The GEOCODE formula fills in coordinates right next to each address
How to display a Google Sheet on your website explains how publishing a sheet works.
The ready-made option
The Location Finder is built this way:
- A WordPress plugin with a shortcode:
[evergreen_locations src="your sheet link"], or paste rows between the tags - Leaflet and OpenStreetMap maps, no API key or billing, with the map library included in the plugin
- Search by name, city or ZIP; Near me sorting with a distance filter; type buttons
- Call, website and Directions links (Directions opens Google Maps for the visitor, which needs no key)
- The GEOCODE formula for your sheet
It also works on Squarespace (every plan), Wix, Webflow and any website. It's $29 once, for unlimited sites. On Squarespace? See how to add a store locator to Squarespace.