Class Coordinate
A coordinate is a tuple of a latitude and a longitude.
Inherited Members
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 SourceLat
Returns the Latitude of this coordinate as a double.
Declaration
public double Lat { get; }
Property Value
Type | Description |
---|---|
double |
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 SourceOfLatLon(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 |