Baidu map latitude and longitude of the Web deviation

Source: Internet
Author: User
Tags base64

As we all know, all kinds of online maps in the country according to the standards of National Bureau of Surveying and mapping to rectify the deviation through latitude, and Baidu map on this basis with their own algorithm to do a two times rectification.

Baidu Map Rectification interface is as follows:

http://api.map.baidu.com/ag/coord/convert?from=0&to=4&x=113.540124&y=23.517846

From=0 represents the true latitude and longitude of the incoming

To=4 representative converted to Baidu Deviation after the latitude and longitude degree

Output JSON format:

{"Error": 0, "x": "Mtezlju1mtgwnzmy", "Y": "MjMuNTIxMjMzOTEwNjQ2"}

X, y are the latitude and longitude after the correction of the value, Base64 encoding format, we can be converted according to Base64 code, if it is in the Baidu map positioning is not required to convert, their API support this format.


In addition to rectifying the needs of our business can not meet, usually need to use the reverse correction (that is, the latitude and longitude after the correction to the true latitude and longitude), very strange Baidu map this interface does not support, the from and to parameters in turn does not work. It makes me very depressed.

Who has the reverse rectification method can share.

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.