Click or drag to resize

FilterDefinitionBuilderTDocumentGeoWithinCenterSphere Method (FieldDefinitionTDocument, Double, Double, Double)

Creates a geo within center sphere filter.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.12.2+a4a3888f4fb51bb518b1eb5002effc2d47f2ea6a
Syntax
public FilterDefinition<TDocument> GeoWithinCenterSphere(
	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 sphere filter.
See Also