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>