Section navigation

Public classSealed GeoDistanceQuery

Namespace
Rowles.LeanCorpus.Search.Geo
Assembly
Rowles.LeanCorpus.dll

Query matching documents within a specified distance from a centre point.

public sealed class GeoDistanceQuery : Query, IEquatable<Query>
Inheritance
GeoDistanceQuery
Implements
Inherited Members
Extension Methods

Public constructor GeoDistanceQuery(string, double, double, double)

Initialises a new GeoDistanceQuery for the specified centre and radius.

Public property CentreLat

Gets the centre latitude of the distance query in decimal degrees.

Public property CentreLon

Gets the centre longitude of the distance query in decimal degrees.

Public property Field

Gets the single field this query targets, or an empty value for fieldless and multi-field queries.

Public property RadiusMetres

Gets the search radius in metres.

Public method Equals(object?)

Determines whether the specified object is equal to the current object.

Public method GetHashCode()

Serves as the default hash function.