Package org.gbif.api.model.predicate
Class GeoDistancePredicate
- java.lang.Object
-
- org.gbif.api.model.predicate.GeoDistancePredicate
-
- All Implemented Interfaces:
Serializable
,Predicate
public class GeoDistancePredicate extends Object implements Predicate
This predicate checks if an occurrence location falls within a distance of a location.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GeoDistancePredicate(String latitude, String longitude, String distance)
Builds a new geodistance predicate that matches records within a given distance of a geopoint..GeoDistancePredicate(DistanceUnit.GeoDistance geoDistance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getDistance()
DistanceUnit.GeoDistance
getGeoDistance()
String
getLatitude()
String
getLongitude()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
GeoDistancePredicate
public GeoDistancePredicate(String latitude, String longitude, String distance)
Builds a new geodistance predicate that matches records within a given distance of a geopoint..- Parameters:
latitude
-longitude
-distance
-
-
GeoDistancePredicate
public GeoDistancePredicate(@NotNull DistanceUnit.GeoDistance geoDistance)
-
-
Method Detail
-
getLatitude
public String getLatitude()
-
getLongitude
public String getLongitude()
-
getDistance
public String getDistance()
-
getGeoDistance
public DistanceUnit.GeoDistance getGeoDistance()
-
-