地图API
GPS坐标转百度坐标
http://api.map.baidu.com/ag/coord/convert?from=0&to=4&x=longitude&y=latitude
其中:
   from: 来源坐标系   (0表示原始GPS坐标,2表示Google坐标)
   to: 转换后的坐标   (4就是百度自己啦,好像这个必须是4才行)
      x: 经度
      y: 纬度
      返回的结果是一个json字符串:
      {"error":0,"x":"MTIxLjUwMDIyODIxNDk2","y":"MzEuMjM1ODUwMjYwMTE3"}
http://api.map.baidu.com/ag/coord/convert?from=0&to=4&x=116.3686&y=32.4567
GPS转高德
https://restapi.amap.com/v3/assistant/coordinate/convert?locations=lng,lat&coordsys=gps&key=8f8d60f732
❤️ 如果你喜欢这篇文章,请点赞支持! 👍 同时欢迎关注我的博客,获取更多精彩内容!
本文来自博客园,作者:佛祖让我来巡山,转载请注明原文链接:https://www.cnblogs.com/sun-10387834/p/15337666.html

                
            
        
浙公网安备 33010602011771号