谷歌的地方API返回调用它从Android使用urlConnection,也从包提供的凭证。
{
"error_message" : "This IP, site or mobile application is not authorized to use this API key. Request received from IP address 120.59.69.127, with empty referer",
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
关于尝试链接
https://maps.googleapis.com/maps/api/place/search/json?location=28.6142552,77.09509802
在尝试浏览器密钥或服务器密钥时,获取的json数据是
{ "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"
}
正如error_message
所说,您的API密钥没有配置为允许这种使用。要使用该网址,请检查您是否