Baidu map iOS SDK and Baidu map iossdk

Source: Internet
Author: User

Baidu map iOS SDK and Baidu map iossdk

Baidu map Android SDK or iOS SDK or a variety of API Tool products use Baidu's own encrypted coordinate system.

Many developers use GPS or other methods to obtain the location points, which is different from the coordinate system used by Baidu map.

When developers apply the spatial location information to map maps, they need to correct the response (Coordinate Conversion). The iOS SDK has provided developers with a response coordinate conversion method,

Developers only need a few lines of code to implement the corresponding coordinate conversion operation.

The specific method is as follows:

CLLocationCoordinate2D test = CLLocationCoordinate2DMake (39.90868, 116.3956); // convert coordinates of google Maps, soso maps, aliyun maps, mapabc maps, and amap maps to Baidu coordinates NSDictionary * testdic = Baidu (test, BMK_COORDTYPE_COMMON); // convert GPS coordinates to Baidu coordinate testdic = BMKConvertBaiduCoorFrom (test, BMK_COORDTYPE_GPS); NSLog (@ "x = % @, y = % @", [testdic objectForKey: @ "x"], [testdic objectForKey: @ "y"]); </span>

Is it easy !~

For more information, see our official website:

Baidu map iOS SDK v210

We recommend that you visit or Ls = 1 & mt = 8, hope to help you, hope to adopt.

What is Baidu map's api? Vector line of my hundred-degree map ......

Baidu map API is a free set of application interfaces based on Baidu map service, including JavaScript API, Web Service API, Android SDK, iOS SDK, positioning SDK, iov api, LBS cloud and other development tools and services, provides basic map display, search, positioning, inverse/geocoding, route planning, LBS cloud storage and retrieval functions, and is suitable for PCs, mobile terminals, servers, and other devices, map application development in multiple operating systems.

Related Article

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: 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.