Docs / Locations
Importing locations
Bring locations in from a CSV file, with column aliases, row-level errors, and upsert or replace modes.
The quickest way to add many locations is a CSV import. Go to Import & sync in the app and download the template, or use your own spreadsheet.
Columns
Headers are matched case-insensitively, and common alternative names are recognized. Only name is required.
| Column | Also accepted as |
|---|---|
name |
store_name, location_name, title, company |
address1 |
address, street, street_address, address_line_1 |
address2 |
address_line_2, suite |
city |
town, locality |
region |
state, province, county |
postcode |
zip, zipcode, postal_code |
country |
country_code. A two-letter code (US, GB, IN) or an English country name (India, United Kingdom), saved as the code |
lat, lng |
latitude, longitude, lon, long |
phone |
telephone, tel, phone_number |
email |
e_mail |
website |
url, web |
description |
notes, details |
image_url |
image, photo, logo |
tags |
categories, category, filters |
hours |
opening_hours, business_hours |
timezone |
time_zone, tz. Defaults to your store’s time zone |
external_id |
store_id, reference, ref |
id |
location_id (the app’s own id, from an export) |
status |
active, hidden, pending, or rejected |
featured |
true to show the location first |
priority |
a number; higher shows first |
pin_icon_url |
pin, pin_icon, marker |
Any other column becomes a custom field. Use custom:<key> to name one explicitly, and social:<network> (for example social:instagram) for social links.
Tags and hours
Separate multiple tags with a pipe: Retail|Organic.
Write opening hours in a compact form, with ranges separated by semicolons:
mon-fri 08:00-20:00; sat-sun 09:00-18:00
Tags, opening hours, and custom pins (pin_icon_url) are available on the Basic plan and above, the same as when you edit a location. On the Free plan, a row that fills in any of them isn’t imported and is listed with the reason. Leave those columns empty, or upgrade, and import again. The sample locations load on every plan, without the features your plan doesn’t include.
Import modes
- Upsert (default) updates locations that match by
idorexternal_idand adds the rest. - Replace also removes locations from earlier CSV imports that are not in the new file. If any row has an error, nothing is removed, so a location whose row failed isn’t deleted by mistake. Fix the rows and import again to finish the cleanup. Google Sheets and Shopify Locations syncs on Premium work the same way.
Errors
If a row can’t be imported, for example because a latitude isn’t a number, the country isn’t recognized, the email address isn’t valid, or the row uses a feature your plan doesn’t include, the import continues and the row is listed with the reason. Fix the rows and upload again.
Geocoding
Rows without lat and lng are geocoded in the background, with no API key to set up. Results are cached, so re-importing the same addresses is fast. A location needs at least a street address, city, ZIP, or postcode to be placed: one with only a country or region isn’t put on the map, so it can’t show up as a pin in the middle of the country. If an address can’t be found, set its coordinates by hand on the location.
Lookups are shared fairly between stores. If address lookup reaches its daily budget or has a temporary outage, your locations remain saved and pending, and map placement retries automatically. The app’s Overview shows when lookups are paused and, when known, when they resume. You can enter coordinates manually at any time. A temporary limit does not mean the address is invalid. Large imports may need more than one day for all pins.
Exporting
Export all (under Import & sync) downloads every location as a CSV in the same format, so you can edit it and import it back. A cell that starts with =, +, -, or @ (other than a plain number) is written with a leading apostrophe, so spreadsheet apps show it as text instead of running it as a formula. Applications and searches come from the public, so this keeps their text from doing anything in your spreadsheet. Importing the file removes the apostrophe again. The analytics export works the same way.
Google Sheets sync (Premium)
Publish your sheet as CSV, then open Import & sync → Google Sheets sync. Paste the link into Sheet URL, select Save, and select Sync now. The sheet uses the same columns as a CSV import and syncs in the background. Set the interval under Appearance → Pages and forms → Sheet sync interval, from 15 minutes to 7 days.
Shopify Locations sync (Premium)
Open Import & sync → Shopify locations, switch on Keep in sync, and select Sync now. MapStockist imports your Shopify locations and keeps them updated as they change. Manage opening hours separately in MapStockist.
Import history
Import & sync lists recent imports and syncs with how many locations were created, updated, deleted, or failed.