1CGoogle Maps Data Lab

How to Find and Remove Duplicates in a Google Maps Export

Duplicates are the most common problem in a raw Google Maps export, and the easiest to miss. You search for "dentist" in five overlapping towns, and the same clinic shows up in three of the result sets. Or a business has two Google profiles, one old and one new, and both come through. On the live directory the visitor sees the same name twice in a row and starts to wonder what else is wrong.

The good news is that most duplicates follow a few patterns. Once you know them, cleaning an export of a few thousand rows takes less time than you might expect. This note covers how to find them, how to decide which row to keep and how to stop them from coming back after the next refresh.

Why exports produce duplicates in the first place

Whether you use Outscraper, Apify or any scraper, the export reflects the searches you ran. Google Maps results are based on a search term and an area, and areas overlap. A business near a town line can appear in searches for both towns. A business listed under several categories can appear in searches for each of them.

There are also duplicates that exist on Google itself. A business that moved might have an old profile still showing. A chain might have separate profiles for a location and its drive-through. A practice with several providers might have a profile for the practice and one for each person working there. These aren't errors in your scraper. They are what Google Maps holds, and you have to decide how your directory treats them.

Start with the place ID

If your export includes a Google place ID column, that is your first and most reliable check. Two rows with the same place ID are the same Google listing, full stop. Sort by that column, remove exact repeats and keep one row from each group.

This step usually clears the bulk of overlap duplicates from searches across neighboring towns. Do it before anything else, because every later check is slower and needs more judgment.

If a row has no place ID, which can happen with some export settings, fall back to a combination of name and full address for this first pass.

Catch near-duplicates by phone and address

Rows that survive the place ID pass can still be the same business. The usual giveaways:

Normalize before you compare. Strip punctuation and spaces from phone numbers, lowercase names, and remove common suffixes like LLC or Inc. Then sort by each normalized column and scan neighbors. A spreadsheet works fine for a few thousand rows. For larger exports a short script that groups by normalized phone number saves a lot of scrolling.

Be careful with shared phone numbers. A medical building or a shopping center might use one main number for several different businesses. Matching phone alone is a reason to look closer, not a reason to delete.

Decide which row to keep

When two rows really are the same business, keep the one with better data. In practice that means checking a few fields:

  1. The row with more reviews is usually the active profile.
  2. The row with current hours and a working website is usually more up to date.
  3. A row marked as closed, temporarily or permanently, should lose to one that isn't.

Sometimes neither row is clearly better. In that case keep the one whose address matches the business's own website, if it has one. If you can't tell after a minute of checking, keep either and flag it for review rather than spending ten minutes on one record.

For practices with separate profiles for individual providers, make a policy decision once and apply it across the directory. Some directories list only the practice. Others list each provider. Mixing the two makes the directory inconsistent.

Keep duplicates from coming back

The next refresh will bring the same duplicates back unless you record what you removed. Keep a small exclusions file: place IDs you've decided to drop, with a short note on why. Before you rebuild the site, filter each new export against that file.

The same file is handy for businesses that asked to be removed and for profiles you merged. It turns a one-time cleanup into something that survives every refresh. Duplicates are one of the signals covered in five signs a directory listing needs updating, which is a useful companion list for the rest of your data review.

Check the result on the live site

After cleaning, rebuild and look at your largest city pages. Scan for repeated names, and search the site for a few businesses you know had duplicates. A clean spreadsheet doesn't always mean a clean page, especially if city assignment put one copy of a business in each of two towns.

More on scraping, cleaning and refreshing Google Maps listing data is on the Google Maps data blog. Once the export is clean, 1 Click Directory Builder turns it into a complete directory site, so the cleanup you do here is what visitors end up seeing.

Questions about duplicate listings

Should I merge reviews from two duplicate profiles?

No. Show the rating and review count from the one profile you keep. Adding numbers from two profiles produces a figure that doesn't exist anywhere on Google.

How often do duplicates come back?

Every time you re-export with overlapping searches. An exclusions file applied before each rebuild keeps the work from repeating.

Is it worth deduplicating a small export by hand?

For a few hundred rows, yes. Sorting by phone number and name and scanning neighbors usually takes well under an hour.