我已经API Key
为Android应用程序创建了一个(用于Android应用程序)。google maps API需要它。但是现在,相同的密钥不适用于Google Places API。
我还尝试使用以下URL来访问浏览器:
我得到:
{
"error_message" : "This IP, site or mobile application is not authorized to use this API key.",
"html_attributions" : [],
"status" : "REQUEST_DENIED"
}
当我用谷歌搜索答案时,我发现:
https://developers.google.com/places/training/autocomplete-android
哪种类型的API密钥?
您需要使用自己的Google Places API浏览器或服务器API密钥,然后才能开始使用Place Autcomplete服务。请注意,Android API密钥不适用于Place Autocomplete服务。
这让我感到困惑,因为我没有Web应用程序的任何URL,也没有任何服务器IP。因此,我对如何获取aBrowser key
或a感到困惑Server key
有人可以帮我弄清楚这里需要哪种钥匙吗?另外,如果我必须创建aBrowser key
或a Server key
,该怎么做?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句