Package com.redis.vl.query
Class Filter.GeoFilterBuilder
java.lang.Object
com.redis.vl.query.Filter.GeoFilterBuilder
- Enclosing class:
Filter
Builder for geo filters
-
Method Summary
Modifier and TypeMethodDescriptionbox(double minLon, double minLat, double maxLon, double maxLat) Create a filter for locations within a bounding box.notRadius(double lon, double lat, double radius, Filter.GeoUnit unit) Create a filter for locations NOT within a radius of a point.radius(double lon, double lat, double radius, Filter.GeoUnit unit) Create a filter for locations within a radius of a point.
-
Method Details
-
radius
Create a filter for locations within a radius of a point.- Parameters:
lon- Longitude of the center pointlat- Latitude of the center pointradius- Radius distanceunit- Unit of measurement for the radius- Returns:
- Filter for locations within the specified radius
-
box
Create a filter for locations within a bounding box.- Parameters:
minLon- Minimum longitudeminLat- Minimum latitudemaxLon- Maximum longitudemaxLat- Maximum latitude- Returns:
- Filter for locations within the bounding box
-
notRadius
Create a filter for locations NOT within a radius of a point.- Parameters:
lon- Longitude of the center pointlat- Latitude of the center pointradius- Radius distanceunit- Unit of measurement for the radius- Returns:
- Filter for locations outside the specified radius
-