Store locator guide
How to add latitude and longitude to a list of store addresses
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.
Steps
- Load your locations spreadsheet in the Store Locator Builder.
- Click “Download file for the Census geocoder”: Unique ID, Street address, City, State, ZIP, with no header row.
- Upload it on the Census Geocoder’s Address Batch form with the benchmark Public_AR_Current and click Get Results.
- Drop the downloaded GeocodeResults.csv into the builder. It fills in latitude and longitude by the Unique ID.
Reading the result
- Match: the address was found. Exact means it matched as typed; Non_Exact means the Census corrected the spelling or a detail, so check those pins.
- No_Match: no street address was found. A missing street number, a PO box or a typo is the usual cause.
- Tie: more than one place matched. Adding the ZIP code usually fixes it.
- The coordinates column is “longitude,latitude”, with longitude first. The builder swaps them into the right order.
Outside the US
The Census geocoder only covers the United States, Puerto Rico and the US Island Areas. For a few locations elsewhere, right-click the place in a map app to copy its coordinates. The builder warns when a pin is far from all the others, which catches swapped or missing minus signs.
Related tools and guides
- Add a store locator to Shopify without an app
Store Locator Builder