Class GeoCoordinate
Represents a Latitude/Longitude and optional Z value as a 2 or 3 dimensional point that gets serialized as new [] { lon, lat, [z] }
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class GeoCoordinate : GeoLocation, IEquatable<GeoLocation>, IFormattable
Constructors
| Edit this page View SourceGeoCoordinate(double, double)
Creates a new instance of GeoCoordinate
Declaration
public GeoCoordinate(double latitude, double longitude)
Parameters
Type | Name | Description |
---|---|---|
double | latitude | |
double | longitude |
GeoCoordinate(double, double, double)
Creates a new instance of GeoCoordinate
Declaration
public GeoCoordinate(double latitude, double longitude, double z)
Parameters
Type | Name | Description |
---|---|---|
double | latitude | |
double | longitude | |
double | z |
Properties
| Edit this page View SourceZ
Gets or sets the Z value
Declaration
public double? Z { get; set; }
Property Value
Type | Description |
---|---|
double? |
Operators
| Edit this page View Sourceimplicit operator GeoCoordinate(double[])
Creates a new instance of GeoCoordinate from an array of 2 or 3 doubles, in the order Latitude, Longitude, and optional Z value. Returns null if coordinates are null If the array does not contain 2 or 3 values
Declaration
public static implicit operator GeoCoordinate(double[] coordinates)
Parameters
Type | Name | Description |
---|---|---|
double[] | coordinates |
Returns
Type | Description |
---|---|
GeoCoordinate |