Table of Contents

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

latitude double

The latitude.

longitude double

The longitude.

Properties

Accuracy

Gets or sets the horizontal accuracy(in meters) of the location.

public double Accuracy { get; set; }

Property Value

double

Altitude

Gets or sets the altitude of the GNSS position.

public double Altitude { get; set; }

Property Value

double

Course

Gets or sets the course angle of the GNSS position.

public Angle Course { get; set; }

Property Value

Angle

Latitude

Gets or sets the latitude of a geographic position.

public double Latitude { get; set; }

Property Value

double

Longitude

Gets or sets the longitude of a geographic position.

public double Longitude { get; set; }

Property Value

double

Speed

Gets or sets the speed of the GNSS position.

public Speed Speed { get; set; }

Property Value

Speed

Timestamp

Gets or sets the date and time of the GNSS position.

public DateTime Timestamp { get; set; }

Property Value

DateTime

VerticalAccuracy

Gets or sets the vertical accuracy (in meters) of the location.

public double VerticalAccuracy { get; set; }

Property Value

double

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 double

The latitude coordinate in decimal degrees.

longitude double

The longitude coordinate in decimal degrees.

Returns

Location

A GeoPosition object with the specified latitude and longitude coordinates.