Skip to main content

Re-importing to update locations

Upload the same spreadsheet again whenever it changes. Rows that match an existing location update in place; read the preview first, because rows that cannot be matched come in as new.

Last updated

Your stockist list changes: a store moves, a dealer closes, three new ones sign up. Keep editing the spreadsheet and import it again. Nearmio works out which rows it already knows.

How a row is matched

Each row is matched to an existing location by:

  1. external_id, if the row has one. Use this if you have it — a store number, a CRM id, anything stable. The match then survives address corrections.
  2. If no location has that id, the address, but only a location that has no id yet. The row updates that location and saves its id on it, so later uploads match by id.
  3. Otherwise, for a row without an external_id, the address — street, city, region, postcode and country, compared after trimming and case-folding.

A matched row shows as Update in the preview; an unmatched one as New. Two rows in the same file that match each other are reported as Duplicate in file, and only the first is used.

What an update changes

  • Filled-in cells overwrite what is stored.
  • Empty cells are left alone. A blank phone does not wipe a phone number you added in the app. To clear a field, edit the location by hand.
  • The pin is re-placed only if the address changed. If you corrected a pin by dragging it, and the row's address is the same as before, the pin stays exactly where you put it.
  • Explicit lat/lng in the file always win, address change or not.

What an import never does

It never deletes. A store that is gone from your spreadsheet stays in Nearmio until you delete it in the app — select it on Locations and press Delete, or tick several rows and delete them together.

Check it worked

In the preview, the updates count should roughly match the rows you changed, and new the rows you added. If everything shows as New when you expected updates, the addresses were written differently this time (a reformatted postcode, "St" for "Street"). If you add an external_id column to a list you already imported, the rows still match by address on that first upload and show as Update; the id is saved on each location and the next upload matches by id. Two exceptions show as New: a row whose address belongs to a location that already has a different id (that location keeps its id and pin), and a row with only coordinates and no address, even when it now has an id (the earlier location has no address to match, so that row is added as a second location, and the next upload matches it by id). If the file has lat and lng for a row, they replace a pin you fixed by hand, on that first upload too. A row with only coordinates (no address and no external_id) cannot be matched at all and shows as New on every upload.

Was this article helpful?