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

AutocompleteService unusable in local environment

Open DanieleMeeters opened this issue 7 months ago • 2 comments

Since yesterday I'm no longer able to use this component In my local environment because it stays always in loading mode:

Image

In the console I see this warning:

Image

It seems that the upgrade to the new Places API is mandatory in the next year but I don't have the time to do a refactor now.

Is there a way to use it locally as before? (I've also tried to use it over https but it didn't solve the issue)

DanieleMeeters avatar Apr 18 '25 08:04 DanieleMeeters

I get the same console warning.... ... google.maps.places.AutocompleteService is not available to new customers. Please use google.maps.places.AutocompleteSuggestion instead ... etc... but in my case both the Google Maps & Places APIs have successfully loaded. The warning is actually written by https://maps.googleapis.com/maps-api-v3/api/js/60/10/intl/en_au/places.js.

I see this component uses the AutoCompleteService.

Image

Could the package authors use google.maps.places.AutocompleteSuggestion instead?

jasonelliott avatar Apr 29 '25 09:04 jasonelliott

Yeah, we ask to the package author to use google.maps.places.AutocompleteSuggestion

My problem was a downtime of the AutocompleteService that happens for 2/3 days just locally (& in some code examples online) but now it's working again (until the next year I suppose).

Here the migration details to the new AutocompleteSuggestion: https://developers.google.com/maps/documentation/javascript/places-migration-overview?hl=en

DanieleMeeters avatar Apr 29 '25 13:04 DanieleMeeters