public interface GeoShape extends 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(Distance radius)
Create a shape used as predicate for geo queries from a
radius around the query center point. |
Metric |
getMetric()
The metric used for this geo predicate.
|
static GeoShape byRadius(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.Metric getMetric()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.