Table of Contents

Class GeoNearOptionsBuilder

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

A builder for the options of the GeoNear command.

[Serializable]
[Obsolete("Use GeoNearArgs instead.")]
[BsonSerializer(typeof(GeoNearOptionsBuilder.Serializer))]
public class GeoNearOptionsBuilder : BuilderBase, IConvertibleToBsonDocument, IMongoGeoNearOptions
Inheritance
GeoNearOptionsBuilder
Implements
Inherited Members
Extension Methods

Constructors

GeoNearOptionsBuilder()

Initializes a new instance of the GeoNearOptionsBuilder class.

Methods

SetDistanceMultiplier(double)

Sets the distance multiplier.

SetMaxDistance(double)

Sets the max distance.

SetSpherical(bool)

Sets whether to use a spherical search.

ToBsonDocument()

Returns the result of the builder as a BsonDocument.