Detailed explanation of the steps to call Baidu Map API

Baidu Map Web Service API provides developers with http/https interfaces, that is, developers initiate retrieval requests in the form of http/https and obtain retrieval data returned in json or xml format. Users can develop map applications in JavaScript, C#, C++, Java and other languages ​​based on this. The online address of Baidu Map API is: baidumap.apifox.cn/ . You can clone the project at this online address to Apifox to facilitate debugging. The use of Baidu Map API will be explained below. See below for details.

Register a developer account

To call Baidu Map API , you first need to register a developer account at: lbsyun.baidu.com/apiconsole/… If you have already registered, this step can be ignored.

Create app

Before obtaining the API Key, you need to create an application first, click "Application Management->My Application" on the left , and then create an application, as shown below:

After the application is created, you can see the API Key (AK)

Debugging Baidu Map API

Open Apifox , clone the Baidu Map API project , and then copy and paste the Baidu Map API Key into the project's environment variables.

Then, select an interface to test and click the "Send" button to successfully return the information:

Calling other APIs of Baidu Maps is similar. To use a certain function, you usually need to obtain the credentials and related parameters first , and then call it.

Finally, I would like to thank everyone who reads my article carefully. Reciprocity is always necessary. Although it is not a very valuable thing, if you can use it, you can take it directly:

This information should be the most comprehensive and complete preparation warehouse for [software testing] friends. This warehouse has also accompanied tens of thousands of test engineers through the most difficult journey. I hope it can also help you!

Guess you like

Origin blog.csdn.net/2301_78276982/article/details/135387489