Subject.
Assume that Baidu coordinates are (x, y). In iOS-based Baidu map development (6), we regard (x, y) as Google coordinates and convert them, after conversion, the coordinates (x1, Y1) are obtained ). Then the calculation method of the real Google coordinates (X2, Y2) is:
X2 = 2 * X-x1;
Y2 = 2 * Y-Y1;
Note:
1. The conversion result is very similar to the real Google coordinates, but there is still an error.
2. Is this conversion within the scope permitted by the policy? Be cautious.
IOS development based on Baidu map (1) -- current user location
IOS development based on Baidu map (2) -- getting poi
IOS development based on Baidu map (3) -- address search
IOS development based on Baidu map (4) -- path search
IOS development based on Baidu map (5)-Summary of core issues
IOS development based on Baidu map (6) -- Google coordinates to hundreds of coordinates
IOS development based on Baidu map (7) -- convert Baidu coordinates to Google coordinates