Table of Contents

Method GeoWithinBox

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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

Creates a geo within box filter.

public FilterDefinition<TDocument> GeoWithinBox(FieldDefinition<TDocument> field, double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY)

Parameters

field FieldDefinition<TDocument>

The field.

lowerLeftX double

The lower left x.

lowerLeftY double

The lower left y.

upperRightX double

The upper right x.

upperRightY double

The upper right y.

Returns

FilterDefinition<TDocument>

A geo within box filter.

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

Creates a geo within box filter.

public FilterDefinition<TDocument> GeoWithinBox(Expression<Func<TDocument, object>> field, double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY)

Parameters

field Expression<Func<TDocument, object>>

The field.

lowerLeftX double

The lower left x.

lowerLeftY double

The lower left y.

upperRightX double

The upper right x.

upperRightY double

The upper right y.

Returns

FilterDefinition<TDocument>

A geo within box filter.