Liferay 6.0.5

com.liferay.util
Class Distance

java.lang.Object
  extended by com.liferay.util.Distance

public class Distance
extends Object


Constructor Summary
Distance()
           
 
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
 

Constructor Detail

Distance

public Distance()
Method Detail

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)

Liferay 6.0.5