Click or drag to resize

FilterDefinitionBuilderTDocumentNearSphereTCoordinates Method (ExpressionFuncTDocument, Object, GeoJsonPointTCoordinates, NullableDouble, NullableDouble)

Creates a near sphere filter.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
Syntax
public FilterDefinition<TDocument> NearSphere<TCoordinates>(
	Expression<Func<TDocument, Object>> field,
	GeoJsonPoint<TCoordinates> point,
	Nullable<double> maxDistance = null,
	Nullable<double> minDistance = null
)
where TCoordinates : GeoJsonCoordinates

Parameters

field
Type: System.Linq.ExpressionsExpressionFuncTDocument, Object
The field.
point
Type: MongoDB.Driver.GeoJsonObjectModelGeoJsonPointTCoordinates
The geometry.
maxDistance (Optional)
Type: SystemNullableDouble
The maximum distance.
minDistance (Optional)
Type: SystemNullableDouble
The minimum distance.

Type Parameters

TCoordinates
The type of the coordinates.

Return Value

Type: FilterDefinitionTDocument
A near sphere filter.
See Also