Class SpeedDatum
Inheritance
System.Object
SpeedDatum
Assembly: SensusAndroid.dll
Syntax
public class SpeedDatum : ImpreciseDatum, ISpeedDatum, IDatum
Constructors
SpeedDatum(DateTimeOffset, Position, Position)
Declaration
public SpeedDatum(DateTimeOffset timestamp, Position previousPosition, Position currentPosition)
Parameters
Type |
Name |
Description |
System.DateTimeOffset |
timestamp |
|
Plugin.Geolocator.Abstractions.Position |
previousPosition |
|
Plugin.Geolocator.Abstractions.Position |
currentPosition |
|
Properties
DisplayDetail
Declaration
public override string DisplayDetail { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
KPH
Declaration
[DoubleProbeTriggerProperty]
[Anonymizable]
public double KPH { get; set; }
Property Value
Type |
Description |
System.Double |
|
StringPlaceholderValue
Gets the string placeholder value, which is the speed (KPH).
Declaration
public override object StringPlaceholderValue { get; }
Property Value
Type |
Description |
System.Object |
The string placeholder value.
|
Overrides
Methods
CalculateDistanceKM(Position, Position)
Declaration
public static double CalculateDistanceKM(Position previousPosition, Position currentPosition)
Parameters
Type |
Name |
Description |
Plugin.Geolocator.Abstractions.Position |
previousPosition |
Previous position.
|
Plugin.Geolocator.Abstractions.Position |
currentPosition |
Current position.
|
Returns
Type |
Description |
System.Double |
Distance in KM.
|
CalculateSpeedKPH(Position, Position, out Double, out Double)
Declaration
public static double CalculateSpeedKPH(Position previousPosition, Position currentPosition, out double distanceKM, out double timeHours)
Parameters
Type |
Name |
Description |
Plugin.Geolocator.Abstractions.Position |
previousPosition |
|
Plugin.Geolocator.Abstractions.Position |
currentPosition |
|
System.Double |
distanceKM |
|
System.Double |
timeHours |
|
Returns
Type |
Description |
System.Double |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
Implements