Table of Contents

Class GeoNearOptions

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

A builder for the options of the GeoNear command.

[Obsolete("Use GeoNearArgs instead.")]
public static class GeoNearOptions
Inheritance
GeoNearOptions
Inherited Members

Properties

Null

Gets a null value with a type of IMongoGeoNearOptions.

public static IMongoGeoNearOptions Null { get; }

Property Value

IMongoGeoNearOptions

Methods

SetDistanceMultiplier(double)

Sets the distance multiplier.

public static GeoNearOptionsBuilder SetDistanceMultiplier(double value)

Parameters

value double

The distance multiplier.

Returns

GeoNearOptionsBuilder

The builder (so method calls can be chained).

SetMaxDistance(double)

Sets the max distance.

public static GeoNearOptionsBuilder SetMaxDistance(double value)

Parameters

value double

The max distance.

Returns

GeoNearOptionsBuilder

The builder (so method calls can be chained).

SetSpherical(bool)

Sets whether to use a spherical search.

public static GeoNearOptionsBuilder SetSpherical(bool value)

Parameters

value bool

Whether to use a spherical search.

Returns

GeoNearOptionsBuilder

The builder (so method calls can be chained).