Android 地图导航调用百度地图、高德地图、腾讯地图,android面试题2018
生活随笔
收集整理的這篇文章主要介紹了
Android 地图导航调用百度地图、高德地图、腾讯地图,android面试题2018
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
double lng = z * Math.cos(theta);
double lat = z * Math.sin(theta);
return new LatLng(lat, lng);
}
/**
- GCJ-02 坐標轉換成 BD-09 坐標
*/
public static LatLng GCJ2BD(LatLng bd) {
double x = bd.longitude, y = bd.latitude;
double z = Math.sqrt(x * x + y * y) + 0.00002 * Math.sin(y * Math.PI);
double theta = Math.atan2(y, x) + 0.000003 * Math.cos(x * Math.PI);
double tempLon = z * Math.cos(theta) + 0.0065;
double tempLat = z * Math.sin(theta) + 0.006;
return new LatLng(tempLat, tempLon);
}
業務需求
===========================================================&
總結
以上是生活随笔為你收集整理的Android 地图导航调用百度地图、高德地图、腾讯地图,android面试题2018的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python利用高德接口,爬取武汉地区的
- 下一篇: 不,你孩子患上的是弱视而不是近视....