コード例 #1
0
 public GeoShapePropertyDescriptor <T> Precision(double precision, GeoPrecision unit) =>
 Assign(a => a.Precision = new GeoDistance(precision, unit));
コード例 #2
0
 public GeoDistanceQueryDescriptor <T> Distance(double distance, GeoPrecision unit) => Assign(a => a.Distance = new GeoDistance(distance, unit));
コード例 #3
0
 public SortGeoDistanceDescriptor <T> Unit(GeoPrecision unit) => Assign(a => a.GeoUnit = unit);
コード例 #4
0
 public GeoDistance(double distance, GeoPrecision unit)
 {
     this.Precision = distance;
     this.Unit      = unit;
 }
コード例 #5
0
 public GeoDistanceRangeQueryDescriptor <T> LessThan(double distance, GeoPrecision unit) =>
 Assign(a => a.LessThan = new GeoDistance(distance, unit));
コード例 #6
0
 public GeoDistanceRangeQueryDescriptor <T> GreaterThanOrEqualTo(double distance, GeoPrecision unit) =>
 Assign(a => a.GreaterThanOrEqualTo = new GeoDistance(distance, unit));
コード例 #7
0
 public GeoDistanceAggregationDescriptor <T> Unit(GeoPrecision unit) => Assign(a => a.Unit = unit);