问题描述
我们的开发人员已要求我为他们提供百度地图的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)(橙色按钮).在弹出窗口中给它起一个名字,然后根据情况选择"for server".以下复选框列表是您要为密钥锁定的内容.如果您想访问所有内容,则在所有内容"旁打勾(花了我一段时间才找出答案,我总是在所有内容上打勾...)
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密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!