use-places-autocomplete icon indicating copy to clipboard operation
use-places-autocomplete copied to clipboard

Places API to legacy status (March 1, 2025)

Open jlopezxs opened this issue 10 months ago • 7 comments

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 avatar Jan 29 '25 09:01 jlopezxs

@jlopezxs Hey! Do you know how to fix the problem? Maybe you know any other library for working with new places API?

Polina-Zelenina avatar Mar 17 '25 19:03 Polina-Zelenina

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

csandman avatar Apr 01 '25 01:04 csandman

What can be the solution for this issue?

ThePiyushAggarwal avatar Apr 14 '25 06:04 ThePiyushAggarwal

+1 Facing the same issue

dibyandevelops avatar May 06 '25 05:05 dibyandevelops

@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.

gstrobl avatar May 07 '25 07:05 gstrobl

@wellyshen, any update on this migration, should we compulsory migrate to new one or is it okay to go with old one?

abhinaisai2002 avatar Jun 05 '25 17:06 abhinaisai2002

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 🔥

gstrobl avatar Jun 07 '25 06:06 gstrobl