Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class Coordinate

A coordinate is a tuple of a latitude and a longitude.

Inheritance
object
Coordinate
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Search.Queries.Geo
Assembly: Couchbase.NetClient.dll
Syntax
public class Coordinate
Remarks

This class is Uncommitted and may change in future versions.

Properties

View Source

Lat

Returns the Latitude of this coordinate as a double.

Declaration
public double Lat { get; }
Property Value
Type Description
double
View Source

Lon

Returns the Longitude of this coordinate as a double.

Declaration
public double Lon { get; }
Property Value
Type Description
double

Methods

View Source

OfLatLon(double, double)

Constructs a Coordinate object with latitude and longitude.

Declaration
public static Coordinate OfLatLon(double latitude, double longitude)
Parameters
Type Name Description
double latitude

The latitude of the point as a double.

double longitude

The longitude of the point as a double.

Returns
Type Description
Coordinate
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.