Table of Contents

Class GeoNearResult.GeoNearHit

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

Represents a GeoNear hit.

public abstract class GeoNearResult.GeoNearHit
Inheritance
GeoNearResult.GeoNearHit
Derived
Inherited Members
Extension Methods

Constructors

GeoNearHit(BsonDocument)

Initializes a new instance of the GeoNearHit class.

public GeoNearHit(BsonDocument hit)

Parameters

hit BsonDocument

The hit.

Properties

Distance

Gets the distance.

public double Distance { get; }

Property Value

double

Document

Gets the document.

public object Document { get; }

Property Value

object

DocumentImplementation

Gets the document.

protected abstract object DocumentImplementation { get; }

Property Value

object

RawDocument

Gets the document as a BsonDocument.

public BsonDocument RawDocument { get; }

Property Value

BsonDocument