@Test public void distanceBetweenInKmTest() { double distanceInKm = DistanceCalculation.distanceBetweenInKm(lat1, lon1, lat2, lon2); assertEquals(763.9, distanceInKm, 0.1); }
public static double distanceBetweenInKm(double lat1, double lon1, double lat2, double lon2) { double distance = distanceBetween(lat1, lon1, lat2, lon2); return distance * EARTH_RADIUS_KM; }
DistanceCalculation { public static double distanceBetweenInKm(double lat1, double lon1, double lat2, double lon2) { double distance = distanceBetween(lat1, lon1, lat2, lon2); return distance * EARTH_RADIUS_KM; } }
DistanceCalculation { public static double distanceBetweenInKm(double lat1, double lon1, double lat2, double lon2) { double distance = distanceBetween(lat1, lon1, lat2, lon2); return distance * EARTH_RADIUS_KM; } private  DistanceCalculation(); }
DistanceCalculation { public static double distanceBetweenInKm(double lat1, double lon1, double lat2, double lon2) { double distance = distanceBetween(lat1, lon1, lat2, lon2); return distance * EARTH_RADIUS_KM; } private  DistanceCalculation(); static double distanceBetween(double lat1, double lon1, double lat2, double lon2); static double distanceBetweenInKm(double lat1, double lon1, double lat2, double lon2); }
DistanceCalculation { public static double distanceBetweenInKm(double lat1, double lon1, double lat2, double lon2) { double distance = distanceBetween(lat1, lon1, lat2, lon2); return distance * EARTH_RADIUS_KM; } private  DistanceCalculation(); static double distanceBetween(double lat1, double lon1, double lat2, double lon2); static double distanceBetweenInKm(double lat1, double lon1, double lat2, double lon2);  }