Class GeolocationRange


  • public class GeolocationRange
    extends Object
    Represents Geolocation Range
    • Constructor Detail

      • GeolocationRange

        public GeolocationRange()
    • Method Detail

      • getCenter

        public Geolocation getCenter()
        The mode of the distribution, specified as a latitude-longitude pair
        Returns:
        the center
      • getDistance

        public BigDecimal getDistance()
        A number representing the distance unit. Is required if from or to is not given.
        Returns:
        the distance
      • getUnit

        public Geolocation.Unit getUnit()
        The base unit of measurement
        Returns:
        the unit
      • getFrom

        public BigDecimal getFrom()
        Inclusive lower bound of the range. Is required if to is not given.
        Returns:
        the lower bound
      • getTo

        public BigDecimal getTo()
        Exclusive upper bound of the range. Is required if from is not given.
        Returns:
        teh upper bound
      • setCenter

        public GeolocationRange setCenter​(Geolocation center)
        The mode of the distribution, specified as a latitude-longitude pair
        Parameters:
        center - The center of the distribution
        Returns:
        this.
      • setDistance

        public GeolocationRange setDistance​(BigDecimal distance)
        A number representing the distance unit. Is required if from or to is not given.
        Parameters:
        distance - the distance
        Returns:
        this.
      • setFrom

        public GeolocationRange setFrom​(BigDecimal from)
        Inclusive lower bound of the range. Is required if to is not given.
        Parameters:
        from - the lower bound
        Returns:
        this.
      • setTo

        public GeolocationRange setTo​(BigDecimal to)
        Exclusive upper bound of the range. Is required if from is not given.
        Parameters:
        to - the upper bound
        Returns:
        this.