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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T> GeoReference<T>fromCircle(org.springframework.data.geo.Circle within) Creates aGeoReferencefrom acircle center point.static <T> GeoReference<T>fromCoordinate(double longitude, double latitude) Creates aGeoReferencefrom a WGS84 longitude/latitude coordinate.static <T> GeoReference<T>fromCoordinate(org.springframework.data.geo.Point point) Creates aGeoReferencefrom a WGS84 longitude/latitude coordinate.static <T> GeoReference<T>fromCoordinate(RedisGeoCommands.GeoLocation<?> location) Creates aGeoReferencefrom a WGS84 longitude/latitude coordinate.static <T> GeoReference<T>fromMember(RedisGeoCommands.GeoLocation<T> member) Creates aGeoReferencefrom ageoset member.static <T> GeoReference<T>fromMember(T member) Creates aGeoReferencefrom a geoset member.
-
Method Details
-
fromMember
Creates aGeoReferencefrom a geoset member.- Type Parameters:
T-- Parameters:
member- must not be null.- Returns:
-
fromMember
Creates aGeoReferencefrom ageoset member.- Type Parameters:
T-- Parameters:
member- must not be null.- Returns:
-
fromCircle
Creates aGeoReferencefrom acircle center point.- Type Parameters:
T-- Parameters:
within- must not be null.- Returns:
-
fromCoordinate
Creates aGeoReferencefrom a WGS84 longitude/latitude coordinate.- Type Parameters:
T-- Parameters:
longitude-latitude-- Returns:
-
fromCoordinate
Creates aGeoReferencefrom a WGS84 longitude/latitude coordinate.- Type Parameters:
T-- Parameters:
location- must not be null.- Returns:
-
fromCoordinate
Creates aGeoReferencefrom a WGS84 longitude/latitude coordinate.- Type Parameters:
T-- Parameters:
point- must not be null.- Returns:
-