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
  • Method Details

    • fromMember

      static <T> GeoReference<T> fromMember(T member)
      Creates a GeoReference from a geoset member.
      Type Parameters:
      T -
      Parameters:
      member - must not be null.
      Returns:
    • fromMember

      static <T> GeoReference<T> fromMember(RedisGeoCommands.GeoLocation<T> member)
      Creates a GeoReference from a geoset member.
      Type Parameters:
      T -
      Parameters:
      member - must not be null.
      Returns:
    • fromCircle

      static <T> GeoReference<T> fromCircle(org.springframework.data.geo.Circle within)
      Creates a GeoReference from a circle center point .
      Type Parameters:
      T -
      Parameters:
      within - must not be null.
      Returns:
    • fromCoordinate

      static <T> GeoReference<T> fromCoordinate(double longitude, double latitude)
      Creates a GeoReference from a WGS84 longitude/latitude coordinate.
      Type Parameters:
      T -
      Parameters:
      longitude -
      latitude -
      Returns:
    • fromCoordinate

      static <T> GeoReference<T> fromCoordinate(RedisGeoCommands.GeoLocation<?> location)
      Creates a GeoReference from a WGS84 longitude/latitude coordinate.
      Type Parameters:
      T -
      Parameters:
      location - must not be null.
      Returns:
    • fromCoordinate

      static <T> GeoReference<T> fromCoordinate(org.springframework.data.geo.Point point)
      Creates a GeoReference from a WGS84 longitude/latitude coordinate.
      Type Parameters:
      T -
      Parameters:
      point - must not be null.
      Returns: