react-places-autocomplete
react-places-autocomplete copied to clipboard
AutocompleteService unusable in local environment
Since yesterday I'm no longer able to use this component In my local environment because it stays always in loading mode:
In the console I see this warning:
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)
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.
Could the package authors use google.maps.places.AutocompleteSuggestion instead?
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