com.liferay.util
Class Distance
java.lang.Object
com.liferay.util.Distance
public class Distance
- extends Object
Method Summary |
static double |
calculate(double lat1,
double lon1,
double lat2,
double lon2)
|
static double |
kmToMiles(double km)
|
static double |
milesToKm(double miles)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Distance
public Distance()
calculate
public static double calculate(double lat1,
double lon1,
double lat2,
double lon2)
kmToMiles
public static double kmToMiles(double km)
milesToKm
public static double milesToKm(double miles)