
Package ca.uhn.fhir.jpa.util
Class CoordCalculator
java.lang.Object
ca.uhn.fhir.jpa.util.CoordCalculator
Utility for calculating a symmetric GeoBoundingBox around a center point,
ensuring each edge is at least the given distance in kilometers away.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.hibernate.search.engine.spatial.GeoBoundingBox
getBox
(double lat, double lon, double distanceKm) Computes a symmetric bounding box around the given latitude/longitude center, with each edge being at least the given distance in km away.
-
Field Details
-
MAX_SUPPORTED_DISTANCE_KM
- See Also:
-
-
Constructor Details
-
CoordCalculator
public CoordCalculator()
-
-
Method Details
-
getBox
public static org.hibernate.search.engine.spatial.GeoBoundingBox getBox(double lat, double lon, double distanceKm) Computes a symmetric bounding box around the given latitude/longitude center, with each edge being at least the given distance in km away.- Parameters:
lat
- center latitudelon
- center longitudedistanceKm
- distance in kilometers from center to each edge- Returns:
- GeoBoundingBox centered around the given coordinates
-