本文介绍了如何为网站商店定位器生成百度中国的 API 密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的开发人员要求我向他们提供百度地图的 API 密钥,以便他们可以设置我们的现场商店定位器,但我不确定如何进行此操作.

I have been asked by our developers to give them an API key for Baidu maps so they can set up our on site store locator and I'm not really sure how to go about doing this.

我试图在百度上设置一个帐户,但它要求提供中国手机号码.在我拿到钥匙之前,我必须得到其中之一吗?一旦我有一个帐户,找出如何获得密钥有多容易?

I tried to set up an account on Baidu but it asked for a chinese mobile number. Do I have to get one of these before I can get the key? And how easy is it to work out how to obtain the key once i've got an account?

谁能建议最好的设置方法?

Can anyone advise on the best way to set this up?

提前致谢!

推荐答案

2016 年更新:现在似乎可以使用非中文电话号码创建百度帐户,请参阅 本页.

Update 2016: It now appears to be possible to use non-Chinese phone numbers to create Baidu accounts, see this page.

登录百度后,您需要找到他们的 LBS(基于位置的服务)云并转到那里的控制中心:

Once you're logged into Baidu you need to find their LBS (location-based services) cloud and go to the control center there:

http://lbsyun.baidu.com/apiconsole/key

点击创建新的应用程序/密钥"创建应用程序(0/20)(橙色按钮).在弹出窗口中,您为其命名,然后在您的情况下可能选择服务器".以下复选框列表用于您要为密钥阻止的内容.如果您想访问所有内容,请勾选无"(我花了一段时间才弄清楚,我总是勾选所有内容...)

There you click "Create a new app/key" 创建应用(0/20) (orange button). In the popup you give it a name and then in your case probably select "for server". The following list of checkboxes is for the things you want to BLOCK for your key. If you want access to everything then tick NOTHING (took me a while to figure that out, I always ticked everything...)

对于服务器密钥,您可以为用户选择基于 IP 的白名单,您可以在那里输入服务器的地址.我不确定其他 (sn) 选项.

For server keys you can select an IP based whitelist for users, you would enter the addresses of your servers there. I'm not sure about the other (sn) option.

当您单击确认新密钥应出现在表中时,复制 &使用它.

When you click Confirm the new key should appear in the table, copy & use it.

这篇关于如何为网站商店定位器生成百度中国的 API 密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 10:40
查看更多