Class GeolocationRange
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.GeolocationRange
-
public class GeolocationRange extends Object
-
-
Constructor Summary
Constructors Constructor Description GeolocationRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoLocationgetCenter()The mode of the distribution, specified as a latitude-longitude pairBigDecimalgetDistance()A number representing the distance unit.BigDecimalgetFrom()Inclusive lower bound of the range.BigDecimalgetTo()Exclusive upper bound of the range.GeoLocation.UnitgetUnit()The base unit of measurementGeolocationRangesetCenter(GeoLocation center)The mode of the distribution, specified as a latitude-longitude pairGeolocationRangesetDistance(BigDecimal distance)A number representing the distance unit.GeolocationRangesetFrom(BigDecimal from)Inclusive lower bound of the range.GeolocationRangesetTo(BigDecimal to)Exclusive upper bound of the range.GeolocationRangesetUnit(GeoLocation.Unit unit)The base unit of measurement
-
-
-
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.
-
setUnit
public GeolocationRange setUnit(GeoLocation.Unit unit)
The base unit of measurement- Parameters:
unit- the unit- 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.
-
-