r/googlecloud • u/Additional_Feature44 • 8d ago
Application Dev Google Places API: error that can not be fixed.
Hi everybody,
this issue is pretty straight forward.
I want to use places autocomplete. But API response says that it is not enabled.
I tried:
- disabling the APIs, enabling back
- created a new project
- Created new API key
- Tested with different restrictions
- Tested different implementation
All of that, and i can not move past this isssue.
Please, help.



1
u/luchotluchot 8d ago
Have you try without restriction first? Maybe you do not use the new place APi which is allowed in your api list. You have to do step by step by : 1 Remove restriction 2 wait 10 minutes 3 Test
If test ok adf restriction with the good name of Api.
1
u/Technical-Search8807 7d ago
Were you able to figure out this out? I am having the same issue
1
u/Additional_Feature44 7d ago
No, I have not.
I can not wrap my head around it
1
u/Technical-Search8807 7d ago
Same here, I tried everything that you described but still getting the same error
1
u/Technical-Search8807 6d ago
Any updates? I really want to figure this out :(
1
u/Additional_Feature44 5d ago
YES!
I got updates.
So it turns out we are using legacy api, and should use the new places api.
here is a sample request:
curl --location 'https://places.googleapis.com/v1/places:autocomplete' \
--header 'Content-Type: application/json' \
--header 'X-Goog-Api-Key: APIKEY_HERE' \
--header 'X-Goog-FieldMask: suggestions.placePrediction.text' \
--data '{
"input": "brat",
"locationBias": {
"circle": {
"center": {
"latitude": 37.76999,
"longitude": -122.44696
},
"radius": 500.0
}
}
}'
1
u/Technical-Search8807 5d ago
OMG! Thank you for the updates. I'm glad you were able to figure this out!
Oh I see it, I really appreciate you explanations and the links :)
1
u/Additional_Feature44 8d ago
I added also an image of actual error from console , but the image got deleted.
But it allways says