Class GeoSearchShape
- java.lang.Object
-
- glide.api.models.commands.geospatial.GeoSearchShape
-
public final class GeoSearchShape extends java.lang.ObjectThe query's shape forGeospatialIndicesBaseCommandscommand.- See Also:
- valkey.io
-
-
Constructor Summary
Constructors Constructor Description GeoSearchShape(double width, double height, GeoUnit unit)Defines a rectangular search area.GeoSearchShape(double radius, GeoUnit unit)Defines a circular search area.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]toArgs()Converts GeoSearchShape into a String[].
-
-
-
Constructor Detail
-
GeoSearchShape
public GeoSearchShape(double radius, GeoUnit unit)Defines a circular search area.- Parameters:
radius- The radius to search by.unit- The measurement unit of the radius.
-
GeoSearchShape
public GeoSearchShape(double width, double height, GeoUnit unit)Defines a rectangular search area.- Parameters:
width- The width to search by.height- The height to search by.unit- The measurement unit of the width and height.
-
-