Baidu map API-Key acquisition

Source: Internet
Author: User

Baidu map API-Key acquisition [It took half a month to learn about Baidu map API development after the start of the project, and I wrote some simple summary during the learning process, I had a simple sharing training in the department. I hope to share my only experience on Baidu map API to the community. The whole article has very few practices and theories, as a result, we often use maps intuitively, and some theories can be understood as soon as we hear them. Baidu map API is mainly a bit of code that can be quickly used by learners, of course, it will take some time to think about how to use it flexibly]
Baidu provides developers with the Baidu map LBS open platform. developers can easily join the platform to create their own applications. Therefore, there is a prerequisite for using the Baidu map API, this condition is available only after API1.5 and has been updated to 2. therefore, to reference a high API, developers must create a key in their own users on the open platform to generate the key. The procedure is very simple. The following describes how to obtain the key: 1. if the developer still has a Baidu pass, register one for a long time, and then log on directly. After logging on to http://lbsyun.baidu.com/2.login, switch to the API console and see the following:
3. Create an application and set some necessary parameters:

4. After confirmation, we can see that the key has been successfully generated:


5. After obtaining the key, you can reference the page. For example, on JSP and HTML pages, I reference it on JSP. The reference format is as follows:

<Script type = "text/javascript" src = "http://api.map.baidu.com/api? V = 2.0 & ak = fw4DkI8ZoN3UZsUc5fkkBOQc "> </script>


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.