In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces "how to realize the longitude and latitude conversion of Baidu map to the longitude and latitude corresponding to Tencent Map / Google". In the daily operation, it is believed that many people have doubts about how to realize the longitude and latitude conversion of Baidu map to the longitude and latitude corresponding to Tencent Map / Google. The editor consulted all kinds of data and sorted out simple and useful operation methods. Hope to answer "how to achieve Baidu map latitude and longitude conversion to Tencent Map / Google corresponding longitude and latitude" of the doubt is helpful! Next, please follow the editor to study!
Method 1: use code for conversion
The problem is that the error after conversion is large and basically unavailable.
Public static void Convert_BD09_To_GCJ02 (double lat, double lng) {double x_pi = Math. PI * 3000.0 / 180.0; double x = lng-0.0065, y = lat-0.006; double z = Math. Sqrt (x * x + y * y)-0.00002 * Math.sin (y * x_pi); double theta = Math.atan2 (y, x)-0.000003 * Math.cos (x * x_pi); lng = z * Math. Cos (theta); lat = z * Math. Sin (theta); System. Out.println (lng); System. Out.println (lat);}
Method 2:
The website provides conversion services, the coordinates are more accurate and available, and the background calls have not been carefully studied.
Http://www.minigps.net/convert.html
Method 3:
Use Tencent Map. For more information, please see 1.html
The address of Tencent Map's old edition: http://api.map.soso.com/doc_v2/example.html?sample-convertor-library#12map
Latest address: http://lbs.qq.com/javascript_v2/doc/convertor.html
The address called directly, longitude and latitude of points=, can be passed into Baidu:
Http://apic.map.qq.com/translate/?type=3&points=114.041993,22.667204&output=jsonp&pf=jsapi&cb=qq.maps.__svcbi1x9al56.cbi1x9al9l0
Coordinate query address:
Http://api.map.baidu.com/lbsapi/getpoint/
Http://lbs.qq.com/javascript_v2/case-run.html#sample-geocoding-reverse
At this point, the study on "how to convert the longitude and latitude of Baidu map to the corresponding longitude and latitude of Tencent Map / Google" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.