我在Android应用程序中集成了Google Places API。 我已阅读api文档See Here。Google Places API总是返回错误
我已经激活了谷歌Places API的Android和生成的浏览器键 ,当我打电话API响应得到错误 -
{"error_message" : "This API project is not authorized to use this API.Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console",
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
我也尝试创建的Android按键,并将其返回 -
{
"error_message" : "This IP, site or mobile application is not authorized to use this API key.",
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
我没有得到我的代码中的问题。
任何帮助表示赞赏。提前致谢。
检查API控制台 -
你可以给你用过的网址? –
@Sandeep Singh请检查此-https://maps.googleapis.com/maps/api/place/textsearch/json?query = SEARCH_STRING&key = API_KEY&radius = DIFINED_RADIUS&location = CURRENT_LAT,CURRENT_LONGI – Guess
KISS使用正确的API密钥(浏览器密钥) –