如何在我的代码中显示最短路径,就像在图片中一样?
我正在使用此代码来查找两点之间的最短距离。
Location locationA = new Location("point A");
locationA.setLatitude(lat);
locationA.setLongitude(long);
Location locationB = new Location("point B");
locationB.setLatitude(lat);
locationB.setLongitude(long);
distance = locationA.distanceTo(locationB);