Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4862 pages

Help for owners

The address autocomplete on my checkout form stopped suggesting addresses

Short answer

When Google Places autocomplete is not working, the browser console usually names the reason. Common ones are billing turned off, a website address missing from the key's allowed list, a key not authorized for the service, or a project that cannot use the old Places API, which Google moved to Legacy on March 1, 2025.

  • Written for business owners
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Does this sound like your situation?

  • Typing an address on my checkout no longer shows suggestions.
  • The address box works on the live site but not on the new staging copy.
  • Customers fill the address by hand and delivery mistakes went up.
  • Staff tried other browsers and the field fails in all of them.
  • My developer moved the site to a new Google Cloud project and the address field broke.

Why does this happen?

  1. The old Places API is now Legacy

    Google's legacy products page lists the Places API as Legacy from March 1, 2025, with Places API (New) as its replacement. Projects that already used it can continue, and Google advises keeping legacy APIs switched off on new projects.

  2. A new project or key cannot reach the legacy API

    Google raises LegacyApiNotActivatedMapError when an app calls a legacy API, such as the Places API, that is not enabled on its project. That is typical after someone creates a fresh Cloud project or key for a redesign.

  3. Billing is off on the Cloud project

    Google's error list includes BillingNotEnabledMapError for a project with billing not enabled. If the card behind the project lapses or its billing account is shut, every page with the field fails the same way.

  4. The key does not allow your website or the service

    RefererNotAllowedMapError means the address loading the script is missing from the key's list of allowed websites, which happens after a domain change. ApiTargetBlockedMapError means the key is not authorized for the service being called.

What can I do about it today?

  1. Read the error in the browser consoleGoogle says the Maps JavaScript API writes its errors to the console. In Chrome, open More tools, then Developer tools, reload the checkout page and copy any line that ends in MapError.
  2. Check the billing account in Google CloudAs the project owner, open Billing in the Google Cloud console and confirm the linked account is active and its payment method still works.
  3. Note any recent website changesA new domain, a move to www, a staging copy or a new Cloud project are the usual triggers. Tell your developer what changed and when.
  4. Keep the form usable without suggestionsMake sure customers can still type a full address by hand while the fix is in progress, so no order is lost.
  5. If someone else built the plugin, report itGoogle's advice for people who do not own the code is to report LegacyApiNotActivatedMapError to the app provider and ask them to upgrade. Send the plugin vendor the exact error.

When should I bring someone in?

  • The autocomplete is custom code on your checkout and the console shows a legacy API error.
  • You do not know which Google account owns the Cloud project or the key.
  • Orders are shipping to wrong addresses because customers stopped using suggestions.

How do I handle it?

  1. Match the error to its causeI reproduce the failure, read the console error, and check the project's enabled APIs, billing status and key restrictions.
  2. Move to Places API (New)Where the code still calls the legacy Places service, I rewrite the autocomplete against Places API (New), which Google names as the replacement.
  3. Lock the key down correctlyThe key is limited to your real domains and only the APIs the site uses, so it works everywhere it should and nowhere else.
  4. Test the whole checkoutI place test orders with suggested and hand-typed addresses on desktop and phone, and confirm the saved address is complete.

The price depends on what I find, so I quote in writing after a short discovery call. Tell me what is happening and I reply within 24 hours.

What do owners ask about this?

Is Google shutting down Places Autocomplete?

Google's legacy page says there is no date yet for turning off the legacy Places API, and promises at least 12 months' notice before any legacy service is decommissioned.

What does LegacyApiNotActivatedMapError mean?

Your app is calling a legacy Maps API, such as the old Places API, that is not enabled on your project. Google's advice for app owners is to switch to the new equivalent API.

Why does address autocomplete work on one site but not another?

Each site may load a different key or project. A key restricted to one domain answers RefererNotAllowedMapError on any other address.

Can I turn the legacy Places API back on?

Google mentions a short-term option to activate a legacy API after completing a feedback form, aimed at people who do not own the app. For code you own, Google points to the new API.

Sources

For your developer: the technical fixes

Related help

Next step

Want this off your desk?

Send me a few lines on where things stand. I reply within 24 hours.