新的Google API Key“Google Maps API v3”不适用于Google Places API?

问题描述:

我正在使用Google Places API(https://developers.google.com/places/documentation/search),并已生成一个新的Google API Key,其中包含允许任何IP。当我尝试获取以下API服务URL的结果时,我收到了拒绝请求的错误消息。

I am working with the Google Places API (https://developers.google.com/places/documentation/search), and have generated a new Google API Key with 'Any IP Allowed'. When I try to get the results of the API service URLs below, I am getting a REQUEST DENIED error.

https://maps.googleapis.com/maps/ API /地点/搜索/ JSON位置= -33.8670522,151.1957362&安培;半径= 500安培;传感器=假安培;键= AIzaSyA3vtFM8AMlIO853ra82KzryBs752VIWts

HTTPS:/ /maps.googleapis.com/maps/api/place/search/xml?key=AIzaSyA3vtFM8AMlIO853ra82KzryBs752VIWts&location=-33.8670522,151.1957362&radius=1000&sensor=false

我已经尝试了请求参数的所有组合,但没有任何结果。

I have tried all combinations of the request parameters, but nothing has worked.

您也必须激活API控制台的地方服务。

You must also activate the places-service in the API-console.