以下のメソッドは 0 を返し続けますが、その理由がわかりません! 助けてください!
currentLocation.setLatitude(38.03211);
currentLocation.setLongitude(-78.51002);
loc が 38.03161、-78.51075、
public double getDistance(HistoricalLocation loc) {
return (double) Math.abs(Math.sqrt((currentLocation.getLatitude() - loc
.getLatitude())
* (currentLocation.getLatitude() - loc.getLatitude())
+ (currentLocation.getLongitude() - loc.getLongitude())
* (currentLocation.getLongitude() - loc.getLongitude())));
}