react-places-autocomplete
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?
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
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