Class GeoNearOptions
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
Methods
SetDistanceMultiplier(double)
Sets the distance multiplier.
public static GeoNearOptionsBuilder SetDistanceMultiplier(double value)
Parameters
value
doubleThe 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
doubleThe 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
boolWhether to use a spherical search.
Returns
- GeoNearOptionsBuilder
The builder (so method calls can be chained).