如何为我的 Android 应用程序获取 Google Places API 密钥 [英] How do I get a Google Places API key for my Android App

查看:40
本文介绍了如何为我的 Android 应用程序获取 Google Places API 密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去 48 小时我一直在努力寻找这个问题的答案.问这个问题的人: 网站,但 2 天的查找让我一无所获.有人可以帮我找到确切的位置来获取地方 api 吗?(同样,不是地图 API,我已经有了它,并且由于我缺少辅助键,我只收到 REQUEST_DENIED 错误.

先谢谢大家

-西尔马里洛斯

解决方案

请按照以下步骤操作

通过 https://code.google.com/apis/console 并使用您的 Google 帐户登录.

当您首次登录 API 控制台时,系统会为您创建一个名为 API 项目的默认项目.您可以使用该项目,也可以通过单击窗口顶部的 API 项目按钮并选择创建来创建一个新项目.Maps API for Business 客户必须使用为他们创建的 API 项目作为他们购买 Places for Business 的一部分.

点击左侧导航面板中的服务链接.

点击 Places API 条目旁边的状态开关(开/关按钮).开关滑动到 ON.

点击左侧导航面板中的 API Access.

点击创建新的服务器密钥.如果您希望限制可以发送 API 请求的服务器,请输入一个或多个服务器 IP 地址.

点击创建.您的 API 密钥显示在服务器应用程序的密钥标题下(带 IP 锁定).

I've spent the last 48 hours pulling my hair out trying to find the answer to this question. The person who asked this question: how can I make API KEY for Google Places api? Is experiencing the same issue I am having, but never got an answer.

Basically, I need help getting a Google PLACES api key. I already have a maps api key which works fine, but I cannot get a places API key. I have followed every single tutorial I could find including (To name a couple: (http://wptrafficanalyzer.in/blog/showing-nearby-places-using-google-places-api-and-google-map-android-api-v2/) , (http://www.androidhive.info/2012/08/android-working-with-google-places-and-maps-tutorial/#) , (https://www.youtube.com/watch?v=8PVK1Ue5rvk) But absolutely nothing has worked.

I added some screenshots below here to illustrate the problem:

1)

2)

3)

4)

Everyone I ask keeps telling me that it is just located somewhere on the https://console.developers.google.com website, but 2 solid days of looking has gotten me nowhere. Can someone please help me to find the EXACT location to obtain a places api? (Again, NOT a maps api, I already have that and am getting only REQUEST_DENIED errors due to my lack of a secondary key.

Thanks in advance all

-Silmarilos

解决方案

Please Follow below steps

Visit the Google APIs Console at https://code.google.com/apis/console and log in with your Google account.

A default project called API Project is created for you when you first log in to the APIs Console. You can use the project, or create a new one by clicking the API Project button at the top of the window and selecting Create. Maps API for Business customers must use the API project created for them as part of their Places for Business purchase.

Click the Services link in the left-hand navigation panel.

Click the status switch (the on/off button) next to the Places API entry. The switch slides to ON.

Click API Access in the left-hand navigation panel.

Click Create new Server key. Enter one or more server IP addresses if you wish to restrict the servers that can send API requests.

Click Create. Your API key appears under the heading Key for server apps (with IP locking).

这篇关于如何为我的 Android 应用程序获取 Google Places API 密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆