Key takeaways
- On March 1, 2025, Google moved the Places API, the Places SDKs for Android and iOS, the Maps JavaScript Places Service, the Directions API and the Distance Matrix API to Legacy status.
- Google's Places API (Legacy) overview says that as of October 2026 the Places API (Legacy) "can no longer be enabled for new Google Cloud projects", and that existing projects remain fully supported. Google's Legacy products page says Legacy services are feature frozen and promises at least 12 months of notice before turning them down.
- LegacyApiNotActivatedMapError means your app called a Legacy API that isn't enabled on your project. Google's advice is to keep Legacy APIs off on new projects and use the new API instead: Places API (New) or the Routes API.
- Google warns that many AI coding assistants generate code for the Legacy APIs by default, so apps built with them can hit this error on a fresh project.
- The move is a real code change: Place Details (New), Nearby Search (New) and Text Search (New) require a field mask, return a different JSON format and use a new pricing model, and the Routes API uses new endpoints with a request body instead of URL parameters.
Pricing an app? Try the free app cost calculator or get a range for your project in the instant quote.
If your app shows LegacyApiNotActivatedMapError, it is calling a Google Maps API that went Legacy on March 1, 2025, from a Cloud project where that API isn’t available. The older Places, Directions and Distance Matrix services are Legacy. Projects already using them can continue. Google recommends keeping them disabled on new projects. The fix is to move the code to Places API (New) or the Routes API. That is a real code change, not a setting.
If you landed here from an old link to the Places SDK for Android docs, that page now returns 404; start from Google’s Android migration guide instead. The dates and behavior below come from Google Maps Platform documentation, as listed in the sources. I re-checked the Legacy page, the Places API (Legacy) overview, the Places and Routes migration guides and the Place Details request on November 28, 2026.
Disclosure: App369 is my studio. I build and fix apps, including maps and location features, and the last section mentions what I sell. Google doesn’t pay me for anything on this page.
What went Legacy, and what replaces it
| Legacy service | Legacy from (per Google) | New service |
|---|---|---|
| Places API | March 1, 2025 | Places API (New) |
| Maps JavaScript API Places Service | March 1, 2025 | Place class |
| Places SDK for Android | March 1, 2025 | Places SDK for Android (New) |
| Places SDK for iOS | March 1, 2025 | Places SDK for iOS (New) |
| Directions API | March 1, 2025 | Routes API (computeRoutes) |
| Distance Matrix API | March 1, 2025 | Routes API (computeRouteMatrix) |
| Maps JavaScript Directions and Distance Matrix services | March 1, 2025 | Route and RouteMatrix classes |
Source: Google Maps Platform, Legacy products, checked November 28, 2026.
What “Legacy” means
Google describes Legacy as an intermediate step between generally available and deprecated:
- Kept off on new projects. The Legacy page advises, “In most cases, keep legacy APIs disabled on new projects.” For the Places API, Google’s Places API (Legacy) overview goes further: as of October 2026 it “can no longer be enabled for new Google Cloud projects.” That is why a fresh project hits the error.
- Fully supported for existing projects. Existing projects can keep using it.
- Feature frozen. New features go only to the new services.
- No turn-down date yet. Google says it expects to turn Legacy services down in the coming years and will give at least 12 months of notice first.
What the old addresses do today
Checked on October 21, 2026:
- developers.google.com/places/android-sdk/intro, the old Places SDK for Android start page, returned 404.
- Older Places SDK and Places API migration links now redirect into Google’s legacy documentation section.
Fixing LegacyApiNotActivatedMapError
- Find which Legacy API is called. Search the app and backend for
maps.googleapis.com/maps/api/place/,maps/api/directions/,maps/api/distancematrix/, the JavaScriptPlacesService,DirectionsServiceandDistanceMatrixService, andPlaces.initialize(on Android. In a Flutter app, check which endpoints your places or directions package calls. - Enable the new API and add it to your key. Google’s Places migration guide says to enable Places API (New) in the Cloud project and add it to the API key your app uses. If you run both versions during the move, Google recommends a separate key for each.
- Move Places calls to the new API.
- Web service: For Place Details, replace the old details URL with
GET https://places.googleapis.com/v1/places/{PLACE_ID}. Send the key inX-Goog-Api-Keyand a field mask such asX-Goog-FieldMask: displayName,formattedAddress. RequestdisplayNamefor the readable name. Nearby Search (New) and Text Search (New) also require a field mask. - Maps JavaScript: Replace
PlacesService.getDetails()withfetchFields()on aPlaceinstance; thePlaceclass works with Promises. Google’s JavaScript migration table maps the search methods too. - Android: initialize with
Places.initializeWithNewPlacesApiEnabled(), and add field masks to Place Details (New), Nearby Search (New) and Text Search (New). Google notes Nearby Search (New) and Text Search (New) are new to the SDK, so they need no migration; Place Details, Place Photos, Autocomplete and Current Place each have a migration guide.
- Web service: For Place Details, replace the old details URL with
- Move Directions and Distance Matrix to the Routes API (Google’s prompt also asks for the required X-Goog-FieldMask header). Replace
maps.googleapis.com/maps/api/directions/withroutes.googleapis.com/directions/v2:computeRoutes, andmaps/api/distancematrix/withroutes.googleapis.com/distanceMatrix/v2:computeRouteMatrix. Send an HTTPS POST with parameters in the body and the response field mask in the header. - Request only the fields you show. My advice: keep each field mask to what the screen actually uses. A wildcard is quicker to write, but you lose control of what each call returns and costs.
- Check the price before you switch. The new APIs use a new pricing model. Google’s tip, for usage high enough to reach second-tier pricing: you’re billed for a different SKU, so switch production close to the start of the month.
- Keep the API key restricted. My advice: restrict each key to the APIs it calls and to your app or domain, especially a key that ships inside a mobile app. If a map then shows “For development purposes only” or won’t load on your domain, see the Google Maps key restriction fix.
If an AI assistant wrote the code
Google’s Legacy page warns that many AI coding assistants generate code for the Legacy APIs by default, and it publishes migration prompts for them. Code like that can work on an older project that still has the Legacy API enabled, then fail on a new one. Point the assistant at Google’s migration guides, ask it to use the new API with field masks, and test on a brand-new Cloud project with no Legacy APIs enabled.
Need a hand?
If your app was built with Lovable, Bolt, Cursor or another AI tool and maps, places or routes stopped working, the AI-Built App Rescue starts with a $450 Launch Check of the whole app in 3 business days from read-only repo access and a test login. For one broken feature in an app you already maintain, the App Fix Ticket covers one reproducible bug at a fixed price, with an optional diagnosis. A $450 Diagnosis gives you the root cause with evidence and a fixed repair quote within 3 business days, credited toward the fix. The $1,200 Fix ($750 after the Diagnosis credit) takes 5 business days. The Fix Ticket clock starts when Simon has repo access and the steps to reproduce the bug. Or send me a short description.
Want this done at a fixed price?
Fixed scope, fixed price, paid upfront. The work happens in writing; no call needed.
Frequently asked questions
- What does LegacyApiNotActivatedMapError mean?
- Google says it means your app is calling a Legacy API, such as the Places API (Legacy), the Directions API (Legacy) or the Distance Matrix API (Legacy), that isn't enabled on your Google Cloud project. If you own the app, Google says to use the equivalent new API instead: Places API (New) or the Routes API. If you don't own the app, Google says to report the error to the app provider, and offers a short-term option to activate the legacy API through a feedback form.
- Is the Google Places API deprecated?
- It is Legacy, which Google describes as a step before deprecation. Since March 1, 2025 the Places API (Legacy) is feature frozen, and Google's Places API (Legacy) overview says that as of October 2026 it can no longer be enabled for new Google Cloud projects. Existing projects can keep using it, and Google says it will give at least 12 months of notice before turning it down. It has not set a date yet.
- Can I still enable the legacy Places API?
- On a new project, Google's Places API (Legacy) overview says no: as of October 2026 it "can no longer be enabled for new Google Cloud projects", and existing projects remain fully supported. Google's Legacy products page advises, "In most cases, keep legacy APIs disabled on new projects", and says that as a short-term solution while you migrate or wait for an update, you can activate the legacy API after completing a brief feedback form. Neither page says how the form fits with the October 2026 change, so plan on Places API (New) for a new project. If an existing project's calls fail, check that the Legacy API is still enabled and allowed on your key.
- What replaced the Directions API and Distance Matrix API?
- The Routes API. Directions requests move to routes.googleapis.com/directions/v2:computeRoutes and Distance Matrix requests to routes.googleapis.com/distanceMatrix/v2:computeRouteMatrix, with parameters in the POST body or headers.
- Why does my AI-built app get LegacyApiNotActivatedMapError?
- Google says many AI coding assistants generate code for the Legacy APIs by default. Those calls fail on any project where the Legacy API isn't enabled, and Google's Places API (Legacy) overview says new Google Cloud projects can no longer enable the Places API (Legacy) as of October 2026. Ask the assistant to migrate to Places API (New) or the Routes API, and check the result against Google's migration guides.
- Will the new Places API cost more?
- It uses a new pricing model, so check the Google Maps Platform price list for the calls your app makes. Google also suggests that apps with usage high enough to reach second-tier pricing switch production traffic close to the start of a month, because the new API is billed under a different SKU.
Sources
- Google Maps Platform, Legacy products and features
- Google Maps Platform, Places API (Legacy) overview
- Google Maps Platform, migrate to Places API (New)
- Google Maps Platform, Places SDK for Android (New) migration overview
- Google Maps Platform, migrate from Directions API and Distance Matrix API to the Routes API
- Google Maps Platform, deprecations
- Google Maps Platform, migrate to Place Details (New)
Related Resources
Related guides
Google Sign-In for Android Is Deprecated: Moving to Credential Manager
Google Sign-In for Android is deprecated and moved to Credential Manager. How to migrate Android and Flutter apps (google_sign_in 7), checked Oct 21, 2026.
Read moreFirebase Deprecations: Every Shutdown Date, 2024 to 2027
Firebase deprecations from 2024 to 2027 in one dated table: what stops working, the deadline, and what to move to, from Firebase docs checked Oct 21, 2026.
Read moregoo.gl Shut Down: Which Google Short Links Still Work in 2026
goo.gl shut down: inactive goo.gl links stopped working after August 25, 2025. Which links still work, why Dynamic Links apps were hit twice, and what to use.
Read more