All Downloads are FREE. Search and download functionalities are using the official Maven repository.

redis.clients.jedis.search.querybuilder.GeoValue Maven / Gradle / Ivy

There is a newer version: 5.3.0-beta1
Show newest version
package redis.clients.jedis.search.querybuilder;

import java.util.Locale;
import redis.clients.jedis.args.GeoUnit;

/**
 * Created by mnunberg on 2/23/18.
 */
public class GeoValue extends Value {

  private final GeoUnit unit;
  private final double lon;
  private final double lat;
  private final double radius;

  public GeoValue(double lon, double lat, double radius, GeoUnit unit) {
    this.lon = lon;
    this.lat = lat;
    this.radius = radius;
    this.unit = unit;
  }

  @Override
  public String toString() {
    return "[" + lon + " " + lat + " " + radius
        + " " + unit.name().toLowerCase(Locale.ENGLISH) + "]";
  }

  @Override
  public boolean isCombinable() {
    return false;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy