📌  相关文章
📜  比较两个坐标之间的距离android - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:03.799000             🧑  作者: Mango

代码示例1
Location loc1 = new Location("");
loc1.setLatitude(lat1);
loc1.setLongitude(lon1);

Location loc2 = new Location("");
loc2.setLatitude(lat2);
loc2.setLongitude(lon2);

float distanceInMeters = loc1.distanceTo(loc2);