Table of Contents

Method GeoWithinCenter

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

GeoWithinCenter(FieldDefinition<TDocument>, double, double, double)

Creates a geo within center filter.

public FilterDefinition<TDocument> GeoWithinCenter(FieldDefinition<TDocument> field, double x, double y, double radius)

Parameters

field FieldDefinition<TDocument>

The field.

x double

The x.

y double

The y.

radius double

The radius.

Returns

FilterDefinition<TDocument>

A geo within center filter.

GeoWithinCenter(Expression<Func<TDocument, object>>, double, double, double)

Creates a geo within center filter.

public FilterDefinition<TDocument> GeoWithinCenter(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<TDocument>

A geo within center filter.