当我点击医院附近的地方时出现错误..
Returning data= {"error_message" : "This IP, site or mobile application is not authorized to use this API key. Request received from IP address 103.247.48.75, with empty referer", "html_attributions" : [], "results" : [], "status" : "REQUEST_DENIED"}
05-10 16:22:38.297 4057-4057/pilojan.slbroute D/json data: { "error_message" : "This IP, site or mobile application is not authorized to use this API key. Request received from IP address 103.247.48.75, with empty referer", "html_attributions" : [], "results" : [], "status" : "REQUEST_DENIED"}
05-10 16:22:38.297 4057-4057/pilojan.slbroute D/nearbyplacesdata: called parse method
05-10 16:22:45.222 4057-4057/pilojan.slbroute D/MapsActivity: url = https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=8.9908983,80.599&radius=10000&type=hospital&sensor=true&key=AIzaSyBFJUy7jJJaOECHEtVFs2WkTalBwtinQao
05-10 16:22:45.267 4057-4275/pilojan.slbroute
答案 0 :(得分:0)
我希望您在项目的谷歌控制台中启用地方api服务,并在网址api键中定义密钥..
参考下面的链接我传递了关键位置api密钥,我得到数据..
答案 1 :(得分:0)
错误消息表明应用程序未被授权使用Api密钥。要能够使用API密钥,请按照以下步骤操作:
希望这个答案能够帮助你和其他观众。