Method GeoWithinCenterSphere

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

GeoWithinCenterSphere(FieldDefinition, 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

The field.

x double

The x.

y double

The y.

radius double

The radius.

Returns

FilterDefinition

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 double

The x.

y double

The y.

radius double

The radius.

Returns

FilterDefinition

A geo within center sphere filter.