Baidu Map Technology Big secret

Source: Internet
Author: User

In the excellent open day, we have invited a number of products, operations experts, but the engineers may be less, this activity, we are pleased to invite Baidu Map senior research and development engineer Zhongdong. Zhongdong has more than four years of experience in map and navigation development, and is currently responsible for the development of the SDK for Baidu maps. In technology and development must be in the forefront of the master.

We have compiled Mr. Zhongdong's speech, hoping to provide real help to the vast number of developers.

First, Baidu Map Introduction: High-end mobile phones to achieve gyro navigation

We can see Baidu this piece to the SDK attention or relatively large, our iteration version speed is also relatively fast. Generally a small version is one months or so, if the large version of the upgrade may be about three months or so of time. iOS this way, according to our statistics, the user volume is not particularly large, so iOS this version of the upgrade will be slower. But now the two versions are not much different, the basic functions are exactly the same. Need to explain, we now have no use of Baidu Mobile map client, our latest mobile phone subway may be 3G fashion version, our SDK version is still the last version, the user experience is not quite consistent. However, we will have some plans later to increase the version of content innovation.

Our support platform can be seen based on the Android1.5 minimum version, which basically all Android devices can fit. You can see that our SDK features mainly provide map browsing, including real-time traffic, satellite maps. Custom overlays, such as users to add some of their own unique landmarks on the map, such as where partners go, on their map will be added to the hotel, to retrieve the surrounding hotels, the logo on the current price, these can be user-defined control.

Then there are some basic search services, such as POI, route, geo-force, anti-geocoding, and so on. We locate the service, accuracy if Wi-Fi case about 200 meters, the base station in the case of less than 500 meters. High-end mobile phones, basically equipped with a gyroscope, I just came in the road with a mobile phone to navigate over, when walking the gyroscope will mark your direction, so that in the course of action to locate the user experience will be very good, basically only through the base station can achieve a similar to the accuracy of the GPS user experience feeling. The 5th is an offline map. I just said that now the SDK this offline map, with our Baidu Map mobile phone client product comparison, the data will be old, we will also consider upgrading.

Second, the design idea: The function covers the Google


Our design ideas, one is functional integrity. Baidu SDK compared with Google, our function is completely able to do, each other we have, performance will do some performance testing. Easy to use, our interface design, or a little reference, compared to Google Maps, or relative to iOS, Baidu as far as possible to consider the developer convenience, if the API from the third-party map to switch over, the interface to minimize. Baidu before the release will do rigorous testing, such as 24 hours of uninterrupted use, search tens of thousands of case, more than 50,000 monkey test. In terms of performance, with mobile phone map products to keep consistent, Baidu Map SDK kernel and Baidu product core is consistent, are using the same set of cores.


In the application-oriented design, we can see the design of these API classes, Mapview are all googleapi. In search, we are all based on an interface call to return the results immediately. If you want to use the SDK developed by Baidu, first to apply for an API Key on our website, just fill in your name. Import the two packages of our SDK into the corresponding location, because our kernel might be based on C + + development. Add some SDK usage privileges to the app manifest, such as the ability to get Wi-Fi, and you can display the map content in this.

Here is a point, if there is no need to show the map, you can also have our package, only need to use the retrieval interface, have access to retrieve the content, or only with the positioning interface, you can also get the content of the positioning, coordinates, this is not mandatory. Your HML is equipped with Mapview, we have a core class, other third party does not, all the features of Baidu Map is based on this bmapmanager, which is a functional management class. The use of Bmapmanager can be used on oncreate. Here are a few usage conventions, our SDK is only used based on the main thread, we will also consider the improvement later. Mapview is a single instance, our Basemap provides some basic information, such as road streets, schools, parks, real-time traffic information is very simple.

Covering is a very important use of the scene, people will be based on their own needs to customize your map on the label, according to our existing classes, such as this is your current location, do not need your own changes, we have added some resources in the inside, you can show your current location and error radius inside, there is a route bus query, By invoking the relevant overlay, the route can be displayed on the map. You can look at this effect, which is mylocationoverlay, which shows the current position and path radius. In use, you will notice that the sensor can be set, if there is a sensor, the question is willing to open, so in the course of action the user experience will be better.



Reprint to: Fry Storm http://aiwgame.com

We now offer search services, which are basically some of the more basic services on the inside. Now, the product side has been on the user's detailed information data, now this SDK has not been added, and later there will be plans. When you call the search interface, you can see, for example, to search for KFC, enter the middle of a coordinate, according to that Poioverlay coordinates, search for a nearby area will have an icon, if the search results will notify you, you can take this interface inside to handle, so you can display the map above, This annotation is provided by our SDK, do not need your own settings, this is the query route.

There is only one instance within the search, and several searches cannot be initiated at the same time. Search can support multiple keywords, such as searching for more than one type, you can search the hotel, can also search the station, will be a one-time feedback to you a few searches, you join the keyword can be processed in the callback. Of course, we have pressure on the server, you ensure that the best feedback control within 50, you are all results, such as a keyword can return 10, two keywords, it is best to set only 5 keywords, so you can return 50, of course, not set too much, the server in the calculation will have some pressure, Will cause the search to fail.

Location services, located by the network, Gps,wi-fi, is a hybrid location, and if only Wi-Fi is also available, it is also possible to get results by registering callbacks inside. Covered with a map package, we provide the official website map, directly into the SD card directory BAIDUMAPSDK inside, you do not need to do too much scanning, the first scan will do some file modification, identification, everywhere is the correct map. Of course, some users will be feedback, why the scan error several times after the error, in fact, has been successfully scanned.

Our offline map packages can also support multiple app sharing, and if multiple applications use the SDK, only one map package is required. Now this SDK program, our later product is also in the development process, later will support the P7 SDK. We now have some users of the SDK feedback, for individual users is not particularly flexible, for them, the map development package is too large, we will consider as simple as possible, or into a configurable flexible package, the user according to their own needs to configure some of the functions he needs, we will support the map vectorization later, Including the 3D effects we see will also be extended.

Of course, the vector map is relatively small, from our existing grasp of data, developers are not too concerned about this piece, our product this piece of data reduced by more than 90%. Our AP resources can go to our official website, Weibo above the attention, or post bar above, we can also timely feedback. Finally do an advertisement, lbs is still hiring, if the developers are interested to come over to interview, there are opportunities to become colleagues, thank you.

Editor to the technology is not too understand, tour engineers more than small compilation, interested friends can download the full PPT here; Please click here for friends who like Baidu Map, or add Weibo.

Baidu Map Technology Big secret

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.