Using Baidu Map interface, make one-click Navigation function

Source: Internet
Author: User

Baidu Map Punctuation function

Call this interface to adjust the PC or Web map and display the name and content information of the point at the specified coordinate point


Service Address

Http://api.map.baidu.com/marker//pc&webapp Service Address


Parameter description

Location lat< latitude >,lng< Longitude >

Title Callout Point Display caption

Content Callout Point Display

Output indicates the type of outputs, which must be specified as HTML on the web to show the map product results

The Coord_type coordinate type, which defaults to bd09 latitude and longitude coordinates. The allowed values are BD09LL, BD09MC, gcj02, WGS84. Bd09ll said Baidu latitude and longitude coordinates, BD09MC said Baidu Mercator coordinates, GCJ02 said after the National Bureau encrypted coordinates, WGS84 represents GPS obtained coordinates.

Zoom shows the level of the map, which defaults to the visual optimal level.

src call source, rule: companyname|appname.


Example


http://api.map.baidu.com/marker?location=40.047669,116.313082&title= my position &content= Baidu Quico building &output= Html&src=yourcomponyname|yourappname

Adjust the Baidu PC or Web map, and display the name "My Location" in the (lat:39.916979519873,lng:116.41004950566) coordinate point, the information window of "Baidu Quico building".

Open the above link in the iOS browser will be the Baidu Web map


Baidu Map Pickup coordinate system (note: coordinate position is opposite)

Http://api.map.baidu.com/lbsapi/getpoint/index.html


Using Baidu Map interface, make one-click Navigation function

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.