首先我们生成两个经纬度对象,
new LatLng(double latitude,double longitude)
然后调用百度地图api的工具
double distance = DistanceUtil. getDistance(mLatLng1,mLatLng2);
首先我们生成两个经纬度对象,
new LatLng(double latitude,double longitude)
然后调用百度地图api的工具
double distance = DistanceUtil. getDistance(mLatLng1,mLatLng2);