Places API to legacy status (March 1, 2025)
Feature Request
Google will transition the Places API, Directions API, and Distance Matrix API to Legacy status. Refer to Legacy products and features page for more information. The expanded automatic volume discounts will not be available for the Legacy services.
They create a new Places API (New) instead of Places API, and Routes API instead of Directions and Distance Matrix APIs, which provide enhanced features, improved quality, and expanded automatic volume discount.
Should be move from this: https://developers.google.com/maps/documentation/javascript/place-autocomplete
To this: https://developers.google.com/maps/documentation/javascript/place-autocomplete-data
Any plan to analyze it and support it?
Describe the Feature
Support to new Places API, needs to be analyzed is the interface of use-places-autocomplete could remain the same.
Describe the Solution You'd Like
Move to it with a major version? If you agree to move to it, I could look into doing a first draft PR looking at the main changes.
@jlopezxs Hey! Do you know how to fix the problem? Maybe you know any other library for working with new places API?
I took a look at this for a bit to see if it would be an easy migration, but I'm a bit unclear on how exactly you're supposed to migrate. Anyway, I figured I'd also include this link they provide for the migration guide: https://developers.google.com/maps/documentation/javascript/places-migration-overview
What can be the solution for this issue?
+1 Facing the same issue
@ThePiyushAggarwal the package needs to be refactored with the new google places api endpoints. @wellyshen are you planning to refactor it? I saw in the readme that you're looking for a maintainer.
@wellyshen, any update on this migration, should we compulsory migrate to new one or is it okay to go with old one?
Hey, in concern that this package isn't maintained anymore. I create for my company a new one with Google Places API (new), also some things are changed how google returned the data and also with the formattedAddress. Here is the package https://github.com/gstrobl/places-autocomplete-hook.
Feel free to give feedback or open issues and pr 🔥