Class BoundingRadius
- java.lang.Object
-
- org.linuxforhealth.fhir.search.location.bounding.Bounding
-
- org.linuxforhealth.fhir.search.location.bounding.BoundingRadius
-
public class BoundingRadius extends Bounding
Bounding Radius takes a point as defined in radians. Latitude and Longtitude and the radius on the arc. The radius on the arc must be in meters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BoundingRadius.Builder
Builds the Bounding Radius.
-
Constructor Summary
Constructors Constructor Description BoundingRadius()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BoundingRadius.Builder
builder()
java.util.List<java.lang.Double>
getDataPoints()
gets the coordinates in an ordered listjava.lang.Double
getLatitude()
java.lang.Double
getLongitude()
java.lang.Double
getRadius()
BoundingType
getType()
returns the bounding type - radius or box.protected void
setLatitude(java.lang.Double latitude)
protected void
setLongitude(java.lang.Double longitude)
protected void
setRadius(java.lang.Double radius)
java.lang.String
toString()
void
validate()
validates the Longitude and Latitude is valid for the Bounding area.-
Methods inherited from class org.linuxforhealth.fhir.search.location.bounding.Bounding
instance, setInstance
-
-
-
-
Method Detail
-
getLatitude
public java.lang.Double getLatitude()
-
setLatitude
protected void setLatitude(java.lang.Double latitude)
-
getLongitude
public java.lang.Double getLongitude()
-
setLongitude
protected void setLongitude(java.lang.Double longitude)
-
getRadius
public java.lang.Double getRadius()
-
setRadius
protected void setRadius(java.lang.Double radius)
-
validate
public void validate()
Description copied from class:Bounding
validates the Longitude and Latitude is valid for the Bounding area.
-
getDataPoints
public java.util.List<java.lang.Double> getDataPoints()
Description copied from class:Bounding
gets the coordinates in an ordered list- Specified by:
getDataPoints
in classBounding
- Returns:
-
getType
public BoundingType getType()
Description copied from class:Bounding
returns the bounding type - radius or box.
-
builder
public static BoundingRadius.Builder builder()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-