Couchbase .NET SDK | 3.8.0
Search Results for

    Show / Hide Table of Contents

    Class Coordinate

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

    Inheritance
    object
    Coordinate
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    | Edit this page View Source

    Lat

    Returns the Latitude of this coordinate as a double.

    Declaration
    public double Lat { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Lon

    Returns the Longitude of this coordinate as a double.

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

    Methods

    | Edit this page 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
    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.