如何获得谷歌的地方API密钥我的Andr​​oid应用我的、密钥、如何获得、地方

2023-09-12 09:27:07 作者:殇灬离别【失望】"

我已经花了过去48小时拉我的头发试图找到这个问题的答案。谁问这个问题的人:我怎样才能使API主要针对谷歌API的地方? 遇到同样的问题,我有,但是没有得到回答。

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.

基本上,我需要得到帮助谷歌的地方API密钥。我已经有一个地图API密钥,工作正常,但我不能让一个地方的API密钥。我跟每一个教程我能找到,包括(仅举几个:(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 ),但绝对没有奏效。

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)

1)

2)

2)

3)

3)

4)

4)

每个人都问我总是告诉我,这只是地方位于 https://console.developers.google.com 网站,但看2固天已经无处得到我。有人可以帮我找到确切的位置,以获得地方API? (同样,没有一个地图API,我已经有了这一点,我只得到REQUEST_DENIED错误,由于我缺乏二级密钥。

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.

在此先感谢所有

-Silmarilos

-Silmarilos

推荐答案

请按照以下步骤

访问谷歌API控制台在的https://$c$c.google.com/apis/console 并与您的谷歌帐户登录。

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

有一个默认的项目名为API项目是为您创建,当你首次登录API控制台。您可以使用该项目,或通过单击API项目按钮,在窗口的顶部,选择创建创建一个新的。商业客户地图API必须使用为他们创建的API项目作为他们的地方商业购买的部分。

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.

点击状态切换(开/关按钮)旁边的邻居API入口。该开关滑动到ON。

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

点击API访问,在左侧导航面板。

Click API Access in the left-hand navigation panel.

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

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

点击创建。你的API密钥显示在标题密钥服务器应用程序(使用IP锁定)。

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