如何让服务器端调用 Google Places API 工作?
How to get server-side call to Google Places API to work?
我正在尝试 Place Detail via Google Places API 如下:
https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJLQUUOYZZwokR1BfSFbM-XB4&key=<<KEY>>
但我不断收到以下错误(在浏览器和服务器端):
{
"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=_",
"html_attributions" : [],
"status" : "REQUEST_DENIED"
}
我创建了一个全新的密钥,没有任何限制(地图 API 在我的 google 控制台中启用)。我如何让它工作?
地点 API 与地图 API 是分开的。确保在开发者控制台中也启用了 Places API。
我正在尝试 Place Detail via Google Places API 如下:
https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJLQUUOYZZwokR1BfSFbM-XB4&key=<<KEY>>
但我不断收到以下错误(在浏览器和服务器端):
{
"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=_",
"html_attributions" : [],
"status" : "REQUEST_DENIED"
}
我创建了一个全新的密钥,没有任何限制(地图 API 在我的 google 控制台中启用)。我如何让它工作?
地点 API 与地图 API 是分开的。确保在开发者控制台中也启用了 Places API。