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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class
- 
Method SummaryStatic MethodsModifier and TypeMethodDescriptionstatic <T> GeoReference<T>fromCircle(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(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- 
fromMemberCreates aGeoReferencefrom a geoset member.- Type Parameters:
- T-
- Parameters:
- member- must not be null.
- Returns:
 
- 
fromMemberCreates aGeoReferencefrom ageoset member.- Type Parameters:
- T-
- Parameters:
- member- must not be null.
- Returns:
 
- 
fromCircleCreates aGeoReferencefrom acircle center point.- Type Parameters:
- T-
- Parameters:
- within- must not be null.
- Returns:
 
- 
fromCoordinateCreates aGeoReferencefrom a WGS84 longitude/latitude coordinate.- Type Parameters:
- T-
- Parameters:
- longitude-
- latitude-
- Returns:
 
- 
fromCoordinateCreates aGeoReferencefrom a WGS84 longitude/latitude coordinate.- Type Parameters:
- T-
- Parameters:
- location- must not be null.
- Returns:
 
- 
fromCoordinateCreates aGeoReferencefrom a WGS84 longitude/latitude coordinate.- Type Parameters:
- T-
- Parameters:
- point- must not be null.
- Returns:
 
 
-