“状态”:“REQUEST_DENIED”由 Places API 在以下情况下返回:
You have not activated the Places API Service in the services tab of the APIs console.
The sensor parameter is missing from your request, or is set to something other than true or false.
The key parameter is missing from your request.
The key parameter does not match the your API key in the API Access tab of the APIs console.
Your API key has not been correctly set up in the API Access tab of the APIs Console:
If you are using a Browser key, check that your allowed Referer(s) are correct.
If you are using a Server key, check that your allowed IP(s) are correct.
Android and iOS keys are not supported, please use a Browser or Server key.
The request was not sent as an HTTPS request, HTTPS is required for all Web Service requests.
The incorrect HTTP method was used to send the request:
All requests must be sent as a GET request except for Place Actions.
All Place Actions must be sent as a POST request.