Class BoundingBox
- java.lang.Object
-
- com.ibm.fhir.search.location.bounding.Bounding
-
- com.ibm.fhir.search.location.bounding.BoundingBox
-
public class BoundingBox extends Bounding
The maximum number of BoundedBoxes for a single coordinate is 4.
lat = 90,-90, long = 180, -180 with any boundary the result is 4 Bounded Boxes.
The bounded boxes must adhere to the following constraints:
There are four points. Latitude: 90 to 0 to -90
Longitude: 180 to 0 -180
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBoundingBox.BuilderBuilds the BoundingBox.
-
Field Summary
Fields Modifier and Type Field Description DoublemaxLatitudeDoublemaxLongitudeDoubleminLatitudeDoubleminLongitude
-
Constructor Summary
Constructors Constructor Description BoundingBox()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BoundingBox.Builderbuilder()List<Double>getDataPoints()gets the coordinates in an ordered listDoublegetMaxLatitude()DoublegetMaxLongitude()DoublegetMinLatitude()DoublegetMinLongitude()BoundingTypegetType()returns the bounding type - radius or box.protected voidsetMaxLatitude(Double maxLatitude)protected voidsetMaxLongitude(Double maxLongitude)protected voidsetMinLatitude(Double minLatitude)protected voidsetMinLongitude(Double minLongitude)StringtoString()voidvalidate()validates the Longitude and Latitude is valid for the Bounding area.-
Methods inherited from class com.ibm.fhir.search.location.bounding.Bounding
instance, setInstance
-
-
-
-
Method Detail
-
getMinLatitude
public Double getMinLatitude()
-
getMaxLatitude
public Double getMaxLatitude()
-
getMinLongitude
public Double getMinLongitude()
-
getMaxLongitude
public Double getMaxLongitude()
-
setMinLatitude
protected void setMinLatitude(Double minLatitude)
-
setMaxLatitude
protected void setMaxLatitude(Double maxLatitude)
-
setMinLongitude
protected void setMinLongitude(Double minLongitude)
-
setMaxLongitude
protected void setMaxLongitude(Double maxLongitude)
-
validate
public void validate()
Description copied from class:Boundingvalidates the Longitude and Latitude is valid for the Bounding area.
-
getDataPoints
public List<Double> getDataPoints()
Description copied from class:Boundinggets the coordinates in an ordered list- Specified by:
getDataPointsin classBounding- Returns:
-
getType
public BoundingType getType()
Description copied from class:Boundingreturns the bounding type - radius or box.
-
builder
public static BoundingBox.Builder builder()
-
-