Click or drag to resize

FilterDefinitionBuilderTDocumentGeoWithinCenter Method (FieldDefinitionTDocument, Double, Double, Double)

Creates a geo within center filter.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.17.0+b316340e6cc3a8bfc8638dc31b54fbbfe41bfcb2
Syntax
public FilterDefinition<TDocument> GeoWithinCenter(
	FieldDefinition<TDocument> field,
	double x,
	double y,
	double radius
)

Parameters

field
Type: MongoDB.DriverFieldDefinitionTDocument
The field.
x
Type: SystemDouble
The x.
y
Type: SystemDouble
The y.
radius
Type: SystemDouble
The radius.

Return Value

Type: FilterDefinitionTDocument
A geo within center filter.
See Also