java.lang.Object
io.lettuce.core.GeoSearch
public final class GeoSearch extends Object
- Since:
- 6.1
- Author:
- Mark Paluch
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGeoSearch.GeoPredicateGeo predicate specifying a search scope.static interfaceGeoSearch.GeoRef<K>Geo reference specifying a search starting point. -
Constructor Summary
Constructors Constructor Description GeoSearch() -
Method Summary
Modifier and Type Method Description static GeoSearch.GeoPredicatebyBox(double width, double height, GeoArgs.Unit unit)static GeoSearch.GeoPredicatebyRadius(double distance, GeoArgs.Unit unit)static <K> GeoSearch.GeoRef<K>fromCoordinates(double longitude, double latitude)static <K> GeoSearch.GeoRef<K>fromMember(K member)Create aGeoSearch.GeoReffrom a Geo setmember.
-
Constructor Details
-
GeoSearch
public GeoSearch()
-
-
Method Details
-
fromMember
Create aGeoSearch.GeoReffrom a Geo setmember.- Parameters:
member- the Geo set member to use as search reference starting point.- Returns:
- the
GeoSearch.GeoRef.
-
fromCoordinates
- Parameters:
longitude- the longitude coordinate according to WGS84.latitude- the latitude coordinate according to WGS84.- Returns:
- the
GeoSearch.GeoRef.
-
byRadius
- Parameters:
distance- the radius.unit- size unit.- Returns:
- the
GeoSearch.GeoPredicatefor the specified radius.
-
byBox
- Parameters:
width- box width.height- box height.unit- size unit.- Returns:
- the
GeoSearch.GeoPredicatefor the specified box.
-