FAQ for "Baidu Map API" JS version

Source: Internet
Author: User

1, how can I mark my shop on the Baidu map? Can I do a regional agent? Is the Baidu map marked for free?

Reply:

This is only responsible for API technical advice, do not solve any map labeling problems. On the Baidu map labeled their company, that is, bubble labeling business. The business has been outsourced to Qingdao billion search, not part of the API Technology category. National Merchant's labeling needs, please call: Partners "Qingdao billion Search Network Technology Co., Ltd." consulting. Contact Tel: 0532-66066999

In addition, Baidu map is no longer external development of regional agents. As the whole map is still in the direction of free labeling, so no longer expand the external labeling agency business.

Personal labeling business has been outsourced to Qingdao billion search, by them to mark and charge matters. If you are a listed company, or like 7 days, such as home, KFC a chain of industries, Baidu Map Operations team will actively contact you for cooperation labeling. If you are a personal label, please call Qingdao billion search 0532-66066999.

2, can you remove the copyright in the lower right corner of Baidu? is Baidu Map API free?

Reply:

First of all, copyright must be retained Oh ~ This is one of the conditions for free use. Second, as long as the non-commercial map application, are free to use. See Baidu API Terms of use:

Http://dev.baidu.com/wiki/map/index.php?title=%E4%BD%BF%E7%94%A8%E6%9D%A1%E6%AC%BE

Baidu Map API for users of non-commercial applications are not charged any fees. If you do not understand the meaning of non-commercial applications, please email [email protected], there is someone to answer for you.

3, how to feedback map data errors? I have technical questions, where should I go to consult?

Reply:

Map data error or update please feedback to: Http://tousu.baidu.com/map/add

API Cooperation Contact Tel: 010-59921813 or mapapi#baidu.com (please change # to @)

API Technical Consulting (Baidu Hi Group) please download Baidu Hi Chat Tool First

JS version: 1357363

Mobile Version: 1363111

Mobile positioning api:1374928

In Baidu Map callout, call Qingdao billion search: 0532-66066999

4, I was from gps/Google to Baidu, why have coordinate offset? How do I coordinate the conversion? How do I convert coordinates in batches?

Reply:

There are three versions of coordinates for iOS, Android, and JavaScript to convert documents. Please send an email to [email protected] for your company name, project name, Project profile, contact and contact information.

Coordinate conversion Tool:

Http://dev.baidu.com/wiki/static/map/API/examples/?v=1.2&0_5#0&5

Company Name

Project name: (Web or Web or client (IOS or Android or others) apply please write clearly + which two coordinate systems are converted please specify)

Project situation: Please describe the project specific application scenarios

Contact

Contact phone

Please explain the above situation, thank you

5, using the Baidu Map API how to locate? How to locate with mobile phone? How do I locate on a map?

Reply:

JavaScript version Locator Code:

Http://dev.baidu.com/wiki/static/map/API/examples/?v=1.2&7_31#7&31

Targeting APIs for mobile platforms (S60, Android, IOS):

Http://dev.baidu.com/wiki/geolocation

6, Baidu Map API in the frequency of access, is there a limit?

Reply:

The number of users at the same time: by the initial JS acquisition per second to calculate, support 1000~1500 times per second.

Query performance, according to different query service points:

Retrieval Service Support 800 times/second;

Bus, driving service 400~600 times/second;

Geocoding performance supports 150 times/second.

Bandwidth limit: full support services due to the small amount of API data.

Coordinate conversion interface: Single IP 50 times/second (more than 100 return 403 error)

Static diagram: Independent IP 10/sec

7, too many labels, the map in IE speed will decline, especially IE6. How to solve?

Reply:

The amount of callout data should be controlled within 150 to maintain high performance.

The number of labels is within 260 and can be achieved using a custom overlay.

The number of labels is greater than 300, it is recommended to try marker aggregation, or data extraction.

Marker Aggregation: http://tieba.baidu.com/f?kz=1031097376

Data extraction: For example, there are 10 marker, choose 6 of them as a display point.

My advice is not to add too many marker on the map at once, but to store the point in the database first, and then addoverlay if you need to display a marker.

8, about "Address resolution and fuzzy query" problem.

I use Address resolution query "Beijing" Why not return to the city? I use Search (fuzzy query or smart query) to query "Jiangbei District Guo Jia Tuo Hongjiang 23-1, Chongqing City" Why are there a lot of results?

Reply:

First, the two queries for the above question are obviously wrong, using the wrong interface. With address resolution, you should query the address that is detailed to the house number, which returns a definite address. Using Search (fuzzy query or smart query), you can find any keyword, note that you need to bring the city name.

Here is an explanation:

Address resolution: Resolves only the address that is detailed to the street. Do not search for non-detailed place names, such as "Beijing".

Use Geocoder for address resolution, such as "10 Street, Haidian District, Beijing", when the system matches this address, GetPoint will return a coordinate point. The callback function is needed here. When the system can not match "Haidian District, Beijing 10 Street", will return to the "Beijing Haidian District," The geometric center point, if still can not match, will return to "Beijing" geometric center point.

Address Resolution Example: http://dev.baidu.com/wiki/static/map/API/examples/?v=1.2&7_29#7&29

Search (fuzzy query or smart query): If you just want to return to the "Beijing" coordinates, or want to fuzzy query/smart query, such as "Beijing KFC", it is recommended not to use address resolution, but use the Localsearch class search method.

For an example of smart search, see: http://www.cnblogs.com/milkmap/archive/2011/04/27/2030971.html

9. How do I make a custom icon? How are the icons on the home and cool news made? What is the property label and how is the bank label made?

One is only pictures, such as bank annotations, "Change icon marker" examples and tutorials are as follows:

Http://www.cnblogs.com/milkmap/archive/2011/03/01/1967885.html

The second is that the image plus the text icon, like the property label, "Custom overlay" examples and tutorials are as follows:

Http://www.cnblogs.com/milkmap/archive/2011/04/18/2019906.html

The third is to use a label to simulate a custom overlay, and the example and tutorial for making a simple property label with a label are as follows:

Http://www.cnblogs.com/milkmap/archive/2011/08/24/2151073.html

10, how to use the Baidu Map API to search their own data?

Reply:

One is the front-end search, examples and tutorials are as follows:

Http://www.cnblogs.com/milkmap/archive/2011/06/24/2089102.html

The second is to set up a database. Storage data: ID, latitude and longitude (point), name (such as Baidu Tower), address telephone and other information. When a user enters a keyword (such as Baidu Tower), it uses SQL to find the data in the database and returns latitude and longitude (point) information. Then, with an example of adding overlays, hit the point to the map and add the address and phone information to the information window. Examples of adding overlays and opening information windows are as follows:

Http://www.cnblogs.com/milkmap/archive/2011/08/16/2135323.html

11. How do I clear all the labels on the map? How do I clear a single callout? How do I remove a custom overlay?

Reply:

Clear all marks on the map, using map.clearoverlays (); Clear single callout Imarker, with Map.removeoverlay (Imarker); Show and hide custom overlays, you can inherit overlay's hide (), or Show () method.

12. Do you have offline maps?

Reply:

Currently only the phone offline map, after downloading can be imported in the client. Address: http://shouji.baidu.com/map/map.html?from=1052

13, how to show the outline of the city?

Reply: You can use the boundary interface. Note that the interface is currently only used for API1.1.

Class Reference:

Http://dev.baidu.com/wiki/map/index.php?title=Class:%E5%9F%BA%E7%A1%80%E7%B1%BB/Boundary

Example, refer to the third part of the tutorial:

Http://www.cnblogs.com/milkmap/archive/2011/04/15/2017135.html

14. How do I invoke the API in c\php\java\asp?

Reply:

Baidu Map API is a front-end interface developed by JavaScript, any backend language can be called, including but not limited to C, PHP, ASP, JAVA.

If you need more forms of API, please see the API Comprehensive product homepage, 8 forms of the Map API welcome your use. API Integrated Products Home page:

Http://dev.baidu.com/wiki/static/index.htm

15, the GPS data I collected converted into Baidu coordinate system, the deviation is very large. How can i solve it?

Reply:

There are four possible ways to do this:

A, the original coordinates may not be GPS (that is, WGS84)

Solution: Make sure that the data you collect is WGS84 standard.

B, the original coordinate accuracy is not enough

Solution: Be sure to search for at least 4 satellites when collecting GPS data. And GPS data is not allowed, but also depends on the height of the surrounding buildings, the higher the more is not allowed, because there is occlusion.

C, degrees and seconds of the concept of confusion

For example, on Google Earth collected is 39°31 ' 20.51 ', then should be converted, 31 points is 31/60 degrees, 20.51 seconds is 20.51/3,600 degrees, the result is 39 + 31/60 + 20.51/3,600 degrees.

D, the latitude and longitude of the order is reversed

Baidu coordinates is longitude first, then dimension, namely point (LNG, LAT). The order of Google coordinates is exactly the opposite, is (lat, LNG).

Attached, Baidu's coordinate conversion tool:

Http://dev.baidu.com/wiki/static/map/API/examples/?v=1.2&0_5#0&5

16. What is the function of place API?

Reply:

Place API main function is to do data management. Users do not have to store their own data, just call our individual classification data ID, we can. Also can do the depth of the search customization, according to their own needs of the search sort.

17, in addition to the official website, what other places can learn Baidu Map API technology?

Reply:

Official website Sample study: http://dev.baidu.com/wiki/static/map/API/examples/

API Practice Tutorial: http://www.cnblogs.com/milkmap/

API Development mechanism: http://www.cnblogs.com/jz1108/

18, I have a large number of coordinates need to be converted, how to operate it?

Reply:

First, there are two coordinate conversion interfaces for use, one-time interfaces and bulk interfaces. The limit of a single interface is independent IP 50 times/second, can be requested multiple times at the same time, the bulk interface is requested once, a maximum of 20 coordinates.

One-time Example:

Http://dev.baidu.com/wiki/static/map/API/examples/?v=1.2&0_5#0&5

Batch example:

Http://dev.baidu.com/wiki/static/map/API/examples/?v=1.2&0_6#0&6

Recommend a method:

GPS coordinates are taken once every 10 seconds, and there is a standby in the queue.

Use a single or batch coordinate transformation interface, executing once per second, to convert the coordinates in the queue.

19, traffic flow, three-dimensional map, taxi fee, satellite map What is the situation?

Reply:

Three-dimensional map:

Beijing Shanghai Guangzhou Shenzhen

Taxi fare:

BEIJING, Shanghai, Guangzhou, Shenzhen, Chengdu, Tianjin, Hangzhou, Wuhan, Suzhou, Nanjing, Chongqing, Zhengzhou, Xian, Jinan, Qingdao, Changsha.

Traffic flow:

BEIJING, Shanghai, Guangzhou, Shenzhen, Nanjing, Nanchang, Chengdu, Chongqing, Wuhan, Dalian, Changzhou

Satellite map coverage levels:

The on-line satellite map contains three high-resolution satellite maps, covering 1-19-level basemaps, of which 1-7 are low-resolution global coverage, 8-13-level for medium-resolution full-China coverage, and 14-19-level for the HD resolution part of the city focus area coverage. We will be updated on-line a total of 339 cities.

20, how to check the latitude by the added dimension (Marker)?

Reply: Marker is through map. Addoverlay () Plus, so also use map to get all the marker added:

var mkrs = Map.getoverlays ();

for (var I=1; i<mkrs.length;i++) {

...

}

Note that if you add 3 marker with Bmaplib.markertool, the number of marker in the map is 4, and the first (Mkrs[0]) should be markertool. So traverse marker to be from 1 to length

FAQ for "Baidu Map API" JS version

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.