Click or drag to resize

FilterDefinitionBuilderTDocumentNear Method (ExpressionFuncTDocument, Object, Double, Double, NullableDouble, NullableDouble)

Creates a near filter.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
Syntax
public FilterDefinition<TDocument> Near(
	Expression<Func<TDocument, Object>> field,
	double x,
	double y,
	Nullable<double> maxDistance = null,
	Nullable<double> minDistance = null
)

Parameters

field
Type: System.Linq.ExpressionsExpressionFuncTDocument, Object
The field.
x
Type: SystemDouble
The x.
y
Type: SystemDouble
The y.
maxDistance (Optional)
Type: SystemNullableDouble
The maximum distance.
minDistance (Optional)
Type: SystemNullableDouble
The minimum distance.

Return Value

Type: FilterDefinitionTDocument
A near filter.
See Also