我可以使用google places api和直接的HTTP请求来查找附近的地方吗?我正在暂停他们的文档https://developers.google.com/places/web-service/search我创建了一个api密钥,但当我尝试从浏览器请求HTTP时,如下所示:https://maps.googleapis.com/maps/api/place/textsearch/json?query=123+main+street&key=API_KEY
我收到了这条消息:
<PlaceSearchResponse>
<status>REQUEST_DENIED</status>
<error_message>
This API project is not authorized to use this API. Please ensure this API is activated in the Google Developers Console: https://console.developers.google.com/apis/api/places_backend?project=_
</error_message>
</PlaceSearchResponse>
什么项目
2 回答
第1步:转到Google Console
第2步:选择项目(左上角)
第3步:进入图书馆并点击 Google Places API Web Service
第4步:然后单击ENABLE
看起来您的项目中未启用API . 按照the link in the error message,选择您的项目,然后单击"Enable" .