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
fieldFieldDefinition<TDocument>The field.
lowerLeftXdoubleThe lower left x.
lowerLeftYdoubleThe lower left y.
upperRightXdoubleThe upper right x.
upperRightYdoubleThe 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
fieldExpression<Func<TDocument, object>>The field.
lowerLeftXdoubleThe lower left x.
lowerLeftYdoubleThe lower left y.
upperRightXdoubleThe upper right x.
upperRightYdoubleThe upper right y.
Returns
- FilterDefinition<TDocument>
A geo within box filter.