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

I think that the library is using the old GCP Places API and thus I can not take it into use anymore?

Open SebaSeba opened this issue 9 months ago • 1 comments

I am getting these errors even though everything should be enabled in my opinion:

This API project is not authorized to use this API. Places API error: ApiNotActivatedMapError https://developers.google.com/maps/documentation/javascript/error-messages#api-not-activated-map-error

places_impl.js:60 [react-places-autocomplete]: error happened when fetching data from Google Maps API. Please check the docs here (https://developers.google.com/maps/documentation/javascript/places#place_details_responses) Status: REQUEST_DENIED

In GCP it is no longer possible to enable the legacy Places API.

https://developers.google.com/maps/documentation/places/web-service/overview-legacy https://developers.google.com/maps/legacy

SebaSeba avatar Mar 06 '25 10:03 SebaSeba

I had a similar issue. Creating a new token in the new Places API did the trick for me. Make sure to select all services related to Google Maps, like Direction API.

https://console.cloud.google.com/google/maps-apis/credentials

rodrigos0ares avatar Mar 19 '25 20:03 rodrigos0ares