Class GeoNearOptions<TInputDocument, TOutputDocument>
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Represents options for the $geoNear stage.
public class GeoNearOptions<TInputDocument, TOutputDocument>
Type Parameters
TInputDocument
TOutputDocument
Inheritance
GeoNearOptions<TInputDocument, TOutputDocument>
Inherited Members
Properties
Gets or sets the output field that contains the calculated distance. Required if querying a time-series collection. Optional for non-time series collections in MongoDB 8.1+
Gets or sets the factor to multiply all distances returned by the query.
Gets or sets the output field that identifies the location used to calculate the distance.
Gets or sets the geospatial indexed field used when calculating the distance.
Gets or sets the max distance from the center point that the documents can be.
Gets or sets the min distance from the center point that the documents can be.
Gets or sets the output serializer.
Gets or sets the query that limits the results to the documents that match the query.
Gets or sets the spherical option which determines how to calculate the distance between two points.