Class GeoLocation
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.GeoLocation
-
public class GeoLocation extends Object
Represents a GeoLocation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeoLocation.UnitRepresents a Geolocation Unit of measurement
-
Constructor Summary
Constructors Constructor Description GeoLocation(String center)Create a GeoLocationGeoLocation(String latitude, String longitude)Create a GeoLocationGeoLocation(BigDecimal latitude, BigDecimal longitude)Create a GeoLocation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)BigDecimal[]getCenter()The center point of the GeoLocation objectBigDecimalgetLatitude()The latitude of the GeoLocationBigDecimalgetLongitude()The longitude of the GeoLocationinthashCode()StringtoString()
-
-
-
Constructor Detail
-
GeoLocation
public GeoLocation(BigDecimal latitude, BigDecimal longitude)
Create a GeoLocation- Parameters:
latitude- The latitude of the geolocationlongitude- The longitude of the geolocation
-
GeoLocation
public GeoLocation(String latitude, String longitude)
Create a GeoLocation- Parameters:
latitude- The latitude of the geolocationlongitude- The longitude of the geolocation
-
GeoLocation
public GeoLocation(String center)
Create a GeoLocation- Parameters:
center- The string representation of the GeoLocation. It must be either latitude, longitude or wellknown format
-
-
Method Detail
-
getCenter
public BigDecimal[] getCenter()
The center point of the GeoLocation object- Returns:
- An array of [latitude, longitude]
-
getLatitude
public BigDecimal getLatitude()
The latitude of the GeoLocation- Returns:
- The latitude
-
getLongitude
public BigDecimal getLongitude()
The longitude of the GeoLocation- Returns:
- The longitude
-
-