Class Filter.GeoFilterBuilder

java.lang.Object
com.redis.vl.query.Filter.GeoFilterBuilder
Enclosing class:
Filter

public static class Filter.GeoFilterBuilder extends Object
Builder for geo filters
  • Method Details

    • radius

      public Filter radius(double lon, double lat, double radius, Filter.GeoUnit unit)
      Create a filter for locations within a radius of a point.
      Parameters:
      lon - Longitude of the center point
      lat - Latitude of the center point
      radius - Radius distance
      unit - Unit of measurement for the radius
      Returns:
      Filter for locations within the specified radius
    • box

      public Filter box(double minLon, double minLat, double maxLon, double maxLat)
      Create a filter for locations within a bounding box.
      Parameters:
      minLon - Minimum longitude
      minLat - Minimum latitude
      maxLon - Maximum longitude
      maxLat - Maximum latitude
      Returns:
      Filter for locations within the bounding box
    • notRadius

      public Filter notRadius(double lon, double lat, double radius, Filter.GeoUnit unit)
      Create a filter for locations NOT within a radius of a point.
      Parameters:
      lon - Longitude of the center point
      lat - Latitude of the center point
      radius - Radius distance
      unit - Unit of measurement for the radius
      Returns:
      Filter for locations outside the specified radius