Store Locator Builder
Turn a spreadsheet of your shops or stockists into a store locator page: a map with a pin for each location, a searchable list, Near me and directions. One Custom Liquid section, no app and no map API key.
What you’ll need
A spreadsheet of your locations (CSV with a header row)
How to get this: A spreadsheet of your locations
- One row per shop or stockist: name, address, and latitude and longitude if you have them.
- Save it as CSV (File › Download › CSV in Google Sheets, or Save As › CSV in Excel).
Latitude and longitude for each location (a free batch geocoder fills them in from addresses)
How to get this: Latitude and longitude for each location
US: the free Census batch geocoder (10,000 addresses per file). Elsewhere: copy coordinates from a map app.
The theme editor (to add a Custom Liquid block; no code editing)
How to get this: The theme editor
- Online Store › Themes › Edit theme (on a copy of your theme if you want to test first).
- Add section or Add block › Custom Liquid, paste the code, then Save.
1Load your locations
No list handy?
Making the CSV from Google Sheets or Excel
Put one location per row under a header row. In Google Sheets choose File › Download › Comma-separated values (.csv); in Excel choose File › Save As › CSV UTF-8.
2Check the pins
3Style it and copy the code
- In Shopify: Online Store › Pages › Add page, title it Find a store and Save.
- Online Store › Themes › Customize. In the page menu at the top choose Pages › Create template, name it store-locator (based on Default page) and click Create template.
- In the new template click Add section › Custom Liquid, paste the code below and Save.
- Back in Online Store › Pages, open Find a store, set Theme template to store-locator and Save. Then add the page to your menu in Content › Menus.
Why a new template and not the page itself?
Sections you add in the theme editor belong to the page’s template, not to one page. Every page that uses the Default page template, such as About us, would show the locator too. A template of its own keeps it on Find a store only.
How it works
- Your spreadsheet is read in this browser tab; columns are found by their names.
- Locations without coordinates get them from the US Census Bureau’s free batch geocoder (you upload the file there) or a map app.
- The builder checks every pin: ranges, swapped columns and pins far from the rest.
- It writes one Custom Liquid section with your locations, a searchable list and a MapLibre map on OpenFreeMap tiles, with OpenStreetMap attribution.
- The map library loads only when the locator scrolls into view, so your page stays fast.
Guides
Questions
Do I need a Google Maps API key?
No. The map uses MapLibre GL JS, an open-source map library, and OpenFreeMap tiles, which are free with no API key, no account and no limit on map views.
Which columns does my spreadsheet need?
A header row with Name and Address (plus City, State and Zip if you have them). Phone, Website, Hours and Note are optional. Latitude and Longitude columns are used as they are; otherwise the builder helps you get them free.
Can it look up coordinates for me?
It prepares the upload file for the US Census Bureau’s free batch geocoder (up to 10,000 addresses per file) and reads the result back in. Addresses are sent only to the Census, by you; this site never sends them anywhere.
Which themes does it work with?
Any Online Store 2.0 theme that has a Custom Liquid section, including Dawn and Horizon. The section uses its own styles and inherits your theme’s fonts and colors.
Is my list uploaded to your server?
No. The spreadsheet is read in this browser tab and the code is written here.
Based on MapLibre GL JS, OpenFreeMap, the US Census Geocoder and Custom Liquid sections.