Package com.ehealthsystem.map
Class Haversine
java.lang.Object
com.ehealthsystem.map.Haversine
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Haversine
public Haversine()
-
-
Method Details
-
distance
public static double distance(com.google.maps.model.LatLng loc1, com.google.maps.model.LatLng loc2) Calculate the distance between to location points given as coordinates using the Haversine formula- Parameters:
loc1
- location point 1/Aloc2
- location point 2/B- Returns:
- distance in kilometers
-
main
-