Method GeoWithinCenter
GeoWithinCenter(FieldDefinition<TDocument>, double, double, double)
Creates a geo within center filter.
public FilterDefinition<TDocument> GeoWithinCenter(FieldDefinition<TDocument> field, double x, double y, double radius)
Parameters
field
FieldDefinition<TDocument>The field.
x
doubleThe x.
y
doubleThe y.
radius
doubleThe radius.
Returns
- FilterDefinition<TDocument>
A geo within center filter.
GeoWithinCenter(Expression<Func<TDocument, object>>, double, double, double)
Creates a geo within center filter.
public FilterDefinition<TDocument> GeoWithinCenter(Expression<Func<TDocument, object>> field, double x, double y, double radius)
Parameters
field
Expression<Func<TDocument, object>>The field.
x
doubleThe x.
y
doubleThe y.
radius
doubleThe radius.
Returns
- FilterDefinition<TDocument>
A geo within center filter.