Class NearLocationHandler

    • Constructor Detail

      • NearLocationHandler

        public NearLocationHandler()
    • Method Detail

      • degree2radians

        public double degree2radians​(double deg)
        degrees to radians
        Parameters:
        deg -
        Returns:
      • radians2degrees

        public double radians2degrees​(double rad)
        radians to degrees
        Parameters:
        rad -
        Returns:
      • createBoundingBox

        public BoundingBox createBoundingBox​(double latitude,
                                             double longitude,
                                             double distance,
                                             String unit)
                                      throws FHIRSearchException
        build a bounding box given a latitude, longitude and distance.
        WGS84 format [latitude]|[longitude]|[distance]|[units]
        Parameters:
        latitude -
        longitude -
        distance -
        unit -
        Returns:
        Throws:
        FHIRSearchException
      • createBoundingRadius

        public Bounding createBoundingRadius​(double latitude,
                                             double longitude,
                                             double distance,
                                             String unit)
                                      throws FHIRSearchException
        create bounding radius.
        Parameters:
        latitude -
        longitude -
        distance -
        unit -
        Returns:
        Throws:
        FHIRSearchException
      • setBounding

        public void setBounding​(boolean boundingRadius)
        overrides the bounding functionality.
        Parameters:
        boundingRadius -