Class Location
- Namespace
- Iot.Device.Common.GnssDevice
- Assembly
- Iot.Device.Common.GnssDevice.dll
Represents a geographic position with latitude and longitude coordinates.
public class Location
- Inheritance
-
Location
- Derived
Constructors
Location()
Initializes a new instance of the Location class.
public Location()
Location(double, double)
Initializes a new instance of the Location class.
public Location(double latitude, double longitude)
Parameters
Properties
Accuracy
Gets or sets the horizontal accuracy(in meters) of the location.
public double Accuracy { get; set; }
Property Value
Altitude
Gets or sets the altitude of the GNSS position.
public double Altitude { get; set; }
Property Value
Course
Gets or sets the course angle of the GNSS position.
public Angle Course { get; set; }
Property Value
Latitude
Gets or sets the latitude of a geographic position.
public double Latitude { get; set; }
Property Value
Longitude
Gets or sets the longitude of a geographic position.
public double Longitude { get; set; }
Property Value
Speed
Gets or sets the speed of the GNSS position.
public Speed Speed { get; set; }
Property Value
Timestamp
Gets or sets the date and time of the GNSS position.
public DateTime Timestamp { get; set; }
Property Value
VerticalAccuracy
Gets or sets the vertical accuracy (in meters) of the location.
public double VerticalAccuracy { get; set; }
Property Value
Methods
FromDecimalDegrees(double, double)
Converts latitude and longitude coordinates from decimal degrees format to a GeoPosition object.
public static Location FromDecimalDegrees(double latitude, double longitude)
Parameters
latitude
doubleThe latitude coordinate in decimal degrees.
longitude
doubleThe longitude coordinate in decimal degrees.
Returns
- Location
A GeoPosition object with the specified latitude and longitude coordinates.