适用于Android应用的Google Places API密钥

赠予

我已经API Key为Android应用程序创建了一个(用于Android应用程序)。google maps API需要它。但是现在,相同的密钥不适用于Google Places API。

我还尝试使用以下URL来访问浏览器:

https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=my_key

我得到:

{
   "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,该怎么做?

某人

查看文档以了解如何获取Google Places API密钥

查看教程以集成Google地方信息

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

无法添加Google Places API密钥

来自分类Dev

适用于其他API的Google API密钥(Android)

来自分类Dev

适用于Android的Google Places API错误:状态{statusCode = NETWORK_ERROR,分辨率=空}

来自分类Dev

Google Maps Places:为什么需要API密钥?

来自分类Dev

无法使用生成的密钥访问Google Places API

来自分类Dev

Google Maps Places:为什么需要API密钥?

来自分类Dev

适用于IOS的Google Places API未设置本地化语言

来自分类Dev

如何为我的Android应用程序获取Google Places API密钥

来自分类Dev

适用于Android 5.0的Google API

来自分类Dev

适用于Android的Google Fit API

来自分类Dev

适用于Android 5.0的Google API

来自分类Dev

实施Google Places API

来自分类Dev

Google Places API替代

来自分类Dev

Google Places API的使用

来自分类Dev

Google Places APi照片

来自分类Dev

Google Places 活动 API

来自分类Dev

适用于MVC C#类的Google API密钥

来自分类Dev

iOS Google Places API:“未授权此IP,网站或移动应用程序使用此API密钥”

来自分类Dev

适用于Android的Google Maps API 2“很遗憾,应用程序已停止。”

来自分类Dev

适用于Android的Google Maps API 2“很遗憾,应用程序已停止。”

来自分类Dev

适用于Android应用程序的Magento REST API

来自分类Dev

从Google Places API获取数据

来自分类Dev

Google places autocomplete api limits

来自分类Dev

MarkLogic Google Places API查询

来自分类Dev

Google Places API无法加载

来自分类Dev

超出 Google Places API 配额

来自分类Dev

结合Google Places API和Facebook Places API

来自分类Dev

适用于Android的Facebook密钥哈希

来自分类Dev

适用于Android和iOS的Google频道API