Method GeoWithinCenterSphere
GeoWithinCenterSphere(FieldDefinition<TDocument>, double, double, double)
Creates a geo within center sphere filter.
public FilterDefinition<TDocument> GeoWithinCenterSphere(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 sphere filter.
GeoWithinCenterSphere(Expression<Func<TDocument, object>>, double, double, double)
Creates a geo within center sphere filter.
public FilterDefinition<TDocument> GeoWithinCenterSphere(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 sphere filter.