Interface GeoReference<T>
- Type Parameters:
T
-
- All Known Implementing Classes:
GeoReference.GeoCoordinateReference
,GeoReference.GeoMemberReference
public interface GeoReference<T>
Reference point for
GEOSEARCH
and GEOSEARCHSTORE
commands. Provides factory methods to create
GeoReference
from geo-set members or reference points.- Since:
- 2.6
- Author:
- Mark Paluch, Christoph Strobl
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> GeoReference<T>
fromCircle
(Circle within) Creates aGeoReference
from acircle center point
.static <T> GeoReference<T>
fromCoordinate
(double longitude, double latitude) Creates aGeoReference
from a WGS84 longitude/latitude coordinate.static <T> GeoReference<T>
fromCoordinate
(Point point) Creates aGeoReference
from a WGS84 longitude/latitude coordinate.static <T> GeoReference<T>
fromCoordinate
(RedisGeoCommands.GeoLocation<?> location) Creates aGeoReference
from a WGS84 longitude/latitude coordinate.static <T> GeoReference<T>
fromMember
(RedisGeoCommands.GeoLocation<T> member) Creates aGeoReference
from ageoset member
.static <T> GeoReference<T>
fromMember
(T member) Creates aGeoReference
from a geoset member.
-
Method Details
-
fromMember
Creates aGeoReference
from a geoset member.- Type Parameters:
T
-- Parameters:
member
- must not be null.- Returns:
-
fromMember
Creates aGeoReference
from ageoset member
.- Type Parameters:
T
-- Parameters:
member
- must not be null.- Returns:
-
fromCircle
Creates aGeoReference
from acircle center point
.- Type Parameters:
T
-- Parameters:
within
- must not be null.- Returns:
-
fromCoordinate
Creates aGeoReference
from a WGS84 longitude/latitude coordinate.- Type Parameters:
T
-- Parameters:
longitude
-latitude
-- Returns:
-
fromCoordinate
Creates aGeoReference
from a WGS84 longitude/latitude coordinate.- Type Parameters:
T
-- Parameters:
location
- must not be null.- Returns:
-
fromCoordinate
Creates aGeoReference
from a WGS84 longitude/latitude coordinate.- Type Parameters:
T
-- Parameters:
point
- must not be null.- Returns:
-