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.