public interface GeoShape
extends org.springframework.data.geo.Shape
GEOSEARCH
and GEOSEARCHSTORE
commands.Modifier and Type | Method and Description |
---|---|
static GeoShape |
byBox(BoundingBox boundingBox)
Create a shape used as predicate for geo queries from a
BoundingBox . |
static GeoShape |
byBox(double width,
double height,
RedisGeoCommands.DistanceUnit distanceUnit)
Create a shape used as predicate for geo queries from a bounding box with specified by
width and
height . |
static GeoShape |
byRadius(org.springframework.data.geo.Distance radius)
Create a shape used as predicate for geo queries from a
radius around the query center point. |
org.springframework.data.geo.Metric |
getMetric()
The metric used for this geo predicate.
|
static GeoShape byRadius(org.springframework.data.geo.Distance radius)
radius
around the query center point.radius
- static GeoShape byBox(double width, double height, RedisGeoCommands.DistanceUnit distanceUnit)
width
and
height
.width
- must not be null.height
- must not be null.distanceUnit
- must not be null.static GeoShape byBox(BoundingBox boundingBox)
BoundingBox
.boundingBox
- must not be null.org.springframework.data.geo.Metric getMetric()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.