Method GeoWithinBox
GeoWithinBox(FieldDefinition<TDocument>, double, double, double, double)
Creates a geo within box filter.
public FilterDefinition<TDocument> GeoWithinBox(FieldDefinition<TDocument> field, double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY)
Parameters
field
FieldDefinition<TDocument>The field.
lowerLeftX
doubleThe lower left x.
lowerLeftY
doubleThe lower left y.
upperRightX
doubleThe upper right x.
upperRightY
doubleThe upper right y.
Returns
- FilterDefinition<TDocument>
A geo within box filter.
GeoWithinBox(Expression<Func<TDocument, object>>, double, double, double, double)
Creates a geo within box filter.
public FilterDefinition<TDocument> GeoWithinBox(Expression<Func<TDocument, object>> field, double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY)
Parameters
field
Expression<Func<TDocument, object>>The field.
lowerLeftX
doubleThe lower left x.
lowerLeftY
doubleThe lower left y.
upperRightX
doubleThe upper right x.
upperRightY
doubleThe upper right y.
Returns
- FilterDefinition<TDocument>
A geo within box filter.