GeolocationReading Class
A position of the device returned by a GeolocationProvider (https://w3c.github.io/geolocation/#coordinates-interface).
public sealed class GeolocationReadingConstructors
| Name | Description |
|---|---|
| GeolocationReading(double, double, double) | Creates a position. |
GeolocationReading(double, double, double)
GeolocationProvider.csCreates a position.
Properties
| Name | Description |
|---|---|
| Accuracy | Gets the accuracy of the latitude and the longitude, in meters. |
| Altitude | Gets the height above the WGS84 ellipsoid, in meters, or null when it is unknown. |
| AltitudeAccuracy | Gets the accuracy of GeolocationReading.Altitude, in meters, or null when it is unknown. |
| Heading | Gets the direction of travel, in degrees clockwise from the true north, or null when it is unknown (it is ignored when GeolocationReading.Speed is 0). |
| Latitude | Gets the latitude, in decimal degrees. |
| Longitude | Gets the longitude, in decimal degrees. |
| Speed | Gets the horizontal speed, in meters per second, or null when it is unknown. |
Accuracy
GeolocationProvider.csAltitude
GeolocationProvider.csAltitudeAccuracy
GeolocationProvider.csGets the accuracy of GeolocationReading.Altitude, in meters, or null when it is unknown.
public double? AltitudeAccuracy { get; init; }Property value
Heading
GeolocationProvider.csGets the direction of travel, in degrees clockwise from the true north, or null when it is unknown (it is ignored when GeolocationReading.Speed is 0).
public double? Heading { get; init; }