|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object geo.google.datamodel.GeoUtils
public class GeoUtils
Method Summary | |
---|---|
static double |
distanceBetweenInKm(GeoCoordinate c1,
GeoCoordinate c2)
Calculate the distance Between Geo Coordinates points in kilometers using spherical law of cosines formula. |
static double |
distanceBetweenInMiles(GeoCoordinate c1,
GeoCoordinate c2)
Calculate the distance Between Geo Coordinates points in miles using spherical law of cosines formula. |
static double |
haversineDistanceBetweenInKm(GeoCoordinate c1,
GeoCoordinate c2)
Calculate the distance Between Geo Coordinates points in kilimeters using Haversine formula. |
static double |
haversineDistanceBetweenInMiles(GeoCoordinate c1,
GeoCoordinate c2)
Calculate the distance Between Geo Coordinates points in miles using Haversine formula. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static double distanceBetweenInMiles(GeoCoordinate c1, GeoCoordinate c2)
c1
and c2
in miles.public static double distanceBetweenInKm(GeoCoordinate c1, GeoCoordinate c2)
c1
and c2
in kilometers.public static double haversineDistanceBetweenInKm(GeoCoordinate c1, GeoCoordinate c2)
c1
and c2
in kilimeters.public static double haversineDistanceBetweenInMiles(GeoCoordinate c1, GeoCoordinate c2)
c1
and c2
in miles.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |