Package io.lettuce.core
Class GeoSearch
- 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 interface
GeoSearch.GeoPredicate
Geo predicate specifying a search scope.static interface
GeoSearch.GeoRef<K>
Geo reference specifying a search starting point.
-
Constructor Summary
Constructors Constructor Description GeoSearch()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GeoSearch.GeoPredicate
byBox(double width, double height, GeoArgs.Unit unit)
static GeoSearch.GeoPredicate
byRadius(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.GeoRef
from a Geo setmember
.
-
-
-
Method Detail
-
fromMember
public static <K> GeoSearch.GeoRef<K> fromMember(K member)
Create aGeoSearch.GeoRef
from a Geo setmember
.- Parameters:
member
- the Geo set member to use as search reference starting point.- Returns:
- the
GeoSearch.GeoRef
.
-
fromCoordinates
public static <K> GeoSearch.GeoRef<K> fromCoordinates(double longitude, double latitude)
- Parameters:
longitude
- the longitude coordinate according to WGS84.latitude
- the latitude coordinate according to WGS84.- Returns:
- the
GeoSearch.GeoRef
.
-
byRadius
public static GeoSearch.GeoPredicate byRadius(double distance, GeoArgs.Unit unit)
- Parameters:
distance
- the radius.unit
- size unit.- Returns:
- the
GeoSearch.GeoPredicate
for the specified radius.
-
byBox
public static GeoSearch.GeoPredicate byBox(double width, double height, GeoArgs.Unit unit)
- Parameters:
width
- box width.height
- box height.unit
- size unit.- Returns:
- the
GeoSearch.GeoPredicate
for the specified box.
-
-