Class GeometryUtils
java.lang.Object
de.hybris.platform.storelocator.impl.GeometryUtils
Utility class responsible for getting elliptical distances
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleApproximate earth radius [kilometers]static final org.gavaghan.geodesy.Ellipsoidthe Krassowski ellipsoid is no longer available as part of geodesy (this constant is copied from the geodesy 1.0.0 release)static final doubleMeridian length = 20000km Angular length = 180 degree distance of one degree = 111.11 -
Method Summary
Modifier and TypeMethodDescriptionprotected static doublefixOverlappedLatitude(double latitude) protected static doublefixOverlappedLongitude(double longitude) protected static doublegetCircleOfLatitudeLength(double latitude) static doublegetElipticalDistanceKM(GPS gpsFrom, GPS gpsTo) Returns Elliptical distance between two gps coordinatesgetSquareOfTolerance(GPS center, double radius) returns list of coordinates locations being the top-left and bottom-right corners of the tolerance squareprotected static org.gavaghan.geodesy.GlobalCoordinatesigps2GlobalCoordinates(GPS igps) static booleanisPointInEurope(GPS point)
-
Field Details
-
KRASSOWSKI
public static final org.gavaghan.geodesy.Ellipsoid KRASSOWSKIthe Krassowski ellipsoid is no longer available as part of geodesy (this constant is copied from the geodesy 1.0.0 release) -
LAT_DEGREE_DIST
public static final double LAT_DEGREE_DISTMeridian length = 20000km Angular length = 180 degree distance of one degree = 111.11- See Also:
-
APP_EARTH_RADIUS
public static final double APP_EARTH_RADIUSApproximate earth radius [kilometers]- See Also:
-
-
Method Details
-
getElipticalDistanceKM
Returns Elliptical distance between two gps coordinates- Parameters:
gpsFrom-gpsTo-- Returns:
- double
-
igps2GlobalCoordinates
-
getCircleOfLatitudeLength
protected static double getCircleOfLatitudeLength(double latitude) -
getSquareOfTolerance
returns list of coordinates locations being the top-left and bottom-right corners of the tolerance square- Parameters:
center-GPSradius- [kilometers]- Returns:
- list of
GPS - Throws:
GeoLocatorException
-
fixOverlappedLongitude
protected static double fixOverlappedLongitude(double longitude) -
fixOverlappedLatitude
protected static double fixOverlappedLatitude(double latitude) -
isPointInEurope
-