Class Coordinates2D
Represents a 2D geographical coordinate consisting of longitude and latitude
public class Coordinates2D
- Inheritance
-
Coordinates2D
- Inherited Members
Constructors
Coordinates2D()
Instantiate a new Coordinates2D instance with default values
public Coordinates2D()
Coordinates2D(double, double)
Instantiate a new Coordinates2D instance with the supplied longitude and latitude
public Coordinates2D(double longitude, double latitude)
Parameters
Properties
Coordinates
[BsonElement("coordinates")]
public double[] Coordinates { get; set; }
Property Value
- double[]
Type
[BsonElement("type")]
public string Type { get; set; }
Property Value
Methods
GeoJsonPoint(double, double)
InitAsync a GeoJsonPoint of GeoJson2DGeographicCoordinates with supplied longitude and latitude
public static GeoJsonPoint<GeoJson2DGeographicCoordinates> GeoJsonPoint(double longitude, double latitude)
Parameters
Returns
- GeoJsonPoint<GeoJson2DGeographicCoordinates>
ToGeoJsonPoint()
Converts a Coordinates2D instance to a GeoJsonPoint of GeoJson2DGeographicCoordinates
public GeoJsonPoint<GeoJson2DGeographicCoordinates> ToGeoJsonPoint()
Returns
- GeoJsonPoint<GeoJson2DGeographicCoordinates>