Class CarPosition
Status data for a car.
Inherited Members
Namespace: RedMist.TimingCommon.Models
Assembly: RedMist.TimingCommon.dll
Syntax
[GeneratePatch]
[MessagePackObject(false)]
public class CarPosition
Constructors
View SourceCarPosition()
Declaration
public CarPosition()
Fields
View SourceInvalidPosition
Used to indicate position information is not available.
Declaration
public const int InvalidPosition = -999
Field Value
| Type | Description |
|---|---|
| int |
Properties
View SourceBestLap
Car's best lap number.
Declaration
[JsonPropertyName("bl")]
[Key(6)]
public int BestLap { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
BestTime
Car's best lap time formatted as HH:mm:ss.fff.
Declaration
[JsonPropertyName("bt")]
[MaxLength(12)]
[Key(5)]
public string? BestTime { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
BlackFlags
Number of black flags applied to the car.
Declaration
[JsonPropertyName("bf")]
[Key(30)]
public int BlackFlags { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Class
Car's class as indicated by the timing system.
Declaration
[JsonPropertyName("class")]
[MaxLength(40)]
[Key(4)]
public string? Class { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ClassPosition
Car's position in-class.
Declaration
[JsonPropertyName("clp")]
[Key(21)]
public int ClassPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
CompletedSections
Car's completed section for the current lap.
Declaration
[JsonPropertyName("csec")]
[Key(41)]
[MaxLength(5)]
public List<CompletedSection> CompletedSections { get; set; }
Property Value
| Type | Description |
|---|---|
| List<CompletedSection> |
CurrentStatus
Active, In Pits,DNS, Contact, Mechanical, etc. Only available with multiloop systems.
Declaration
[JsonPropertyName("mcs")]
[MaxLength(12)]
[Key(49)]
public string CurrentStatus { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DriverId
Current ID of the driver.
Declaration
[JsonPropertyName("did")]
[Key(45)]
[MaxLength(36)]
public string DriverId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DriverName
Current name of the driver.
Declaration
[JsonPropertyName("dn")]
[Key(44)]
[MaxLength(25)]
public string DriverName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EventId
Redmist Event ID.
Declaration
[JsonPropertyName("eid")]
[MaxLength(11)]
[Key(0)]
public string? EventId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ImpactWarning
Car may have been involved in an incident. Only available with certain in-car systems.
Declaration
[JsonPropertyName("iw")]
[Key(50)]
public bool ImpactWarning { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
InCarVideo
In-car video details if available.
Declaration
[JsonPropertyName("vid")]
[Key(46)]
public VideoStatus? InCarVideo { get; set; }
Property Value
| Type | Description |
|---|---|
| VideoStatus |
InClassDifference
Time to the in-class leader formatted as HH:mm:ss.fff.
Declaration
[JsonPropertyName("cd")]
[MaxLength(12)]
[Key(10)]
public string? InClassDifference { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
InClassFastestAveragePace
Indicates this car has the fastest moving average lap time in its class (last 5 laps).
Declaration
[JsonPropertyName("faic")]
[Key(51)]
public bool InClassFastestAveragePace { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
InClassGap
Time to the next car in the same class formatted as HH:mm:ss.fff.
Declaration
[JsonPropertyName("cg")]
[MaxLength(12)]
[Key(9)]
public string? InClassGap { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
InClassPositionsGained
Number of position the car has gained in-class. Negative number means positions lost. Value of -999 means not available.
Declaration
[JsonPropertyName("cpg")]
[Key(25)]
public int InClassPositionsGained { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
InClassStartingPosition
Car's starting position in-class inferred by the order the cars pass S/F at the start of the race or by the multiloop timing system if available.
Declaration
[JsonPropertyName("icsp")]
[Key(24)]
public int InClassStartingPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
IsBestTime
Whether the car set the best lap time of the session.
Declaration
[JsonPropertyName("ibt")]
[Key(7)]
public bool IsBestTime { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsBestTimeClass
Whether the car set the best lap time in its class.
Declaration
[JsonPropertyName("btc")]
[Key(8)]
public bool IsBestTimeClass { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsClassMostPositionsGained
This car has gained the most positions in-class.
Declaration
[JsonPropertyName("cmpg")]
[Key(27)]
public bool IsClassMostPositionsGained { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsEnteredPit
Car just passed the pit lane entry line.
Declaration
[JsonPropertyName("enp")]
[Key(31)]
public bool IsEnteredPit { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsExitedPit
Car just passed the pit lane exit line.
Declaration
[JsonPropertyName("exp")]
[Key(33)]
public bool IsExitedPit { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsInPit
Car is currently in pits.
Declaration
[JsonPropertyName("ip")]
[Key(34)]
public bool IsInPit { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsOverallMostPositionsGained
This car has gained the most positions overall.
Declaration
[JsonPropertyName("ompg")]
[Key(26)]
public bool IsOverallMostPositionsGained { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsPitStartFinish
Car is just passed the pit lane start/finish line.
Declaration
[JsonPropertyName("psf")]
[Key(32)]
public bool IsPitStartFinish { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsStale
Car position is stale and has not been updated for a while.
Declaration
[JsonPropertyName("st")]
[Key(37)]
public bool IsStale { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
LapHadLocalFlag
This lap had a local flag for the car. Requires specific in-car equipment.
Declaration
[JsonPropertyName("lhlf")]
[Key(40)]
public bool? LapHadLocalFlag { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
LapIncludedPit
Current lap includes a pit stop.
Declaration
[JsonPropertyName("lip")]
[Key(35)]
public bool LapIncludedPit { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
LapStartTime
Time at which the current lap started in UTC.
Declaration
[JsonPropertyName("lstt")]
[Key(43)]
public TimeOnly LapStartTime { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeOnly |
LapsLedInClass
Laps completed by the car in class. Null if not supported by the timing system.
Declaration
[JsonPropertyName("llic")]
[Key(19)]
public int? LapsLedInClass { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
LapsLedOverall
Laps completed by the car. Null if not supported by the timing system.
Declaration
[JsonPropertyName("llo")]
[Key(18)]
public int? LapsLedOverall { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
LastLapCompleted
Last lap number.
Declaration
[JsonPropertyName("llp")]
[Key(15)]
public int LastLapCompleted { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
LastLapPitted
Last lap number the car pitted. Null if not supported by the timing system.
Declaration
[Key(17)]
public int? LastLapPitted { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
LastLapTime
Car's last lap time formatted as HH:mm:ss.fff.
Declaration
[JsonPropertyName("ltm")]
[MaxLength(12)]
[Key(14)]
public string? LastLapTime { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LastLoopName
Name of the last timing loop passed.
Declaration
[JsonPropertyName("ln")]
[Key(36)]
[MaxLength(10)]
public string LastLoopName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Latitude
Last reported latitude of the car in WGS84 spherical Mercator.
Declaration
[JsonPropertyName("lat")]
[Key(47)]
public double? Latitude { get; set; }
Property Value
| Type | Description |
|---|---|
| double? |
LocalFlag
Current local flag for the car. Requires specific in-car equipment.
Declaration
[JsonPropertyName("lflg")]
[Key(39)]
public Flags LocalFlag { get; set; }
Property Value
| Type | Description |
|---|---|
| Flags |
Longitude
Last reported longitude of the car in WGS84 spherical Mercator.
Declaration
[JsonPropertyName("lon")]
[Key(48)]
public double? Longitude { get; set; }
Property Value
| Type | Description |
|---|---|
| double? |
Number
Car number which can include letters such as 99x.
Declaration
[JsonPropertyName("n")]
[MaxLength(5)]
[Key(2)]
public string? Number { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OverallDifference
Time to the overall leader formatted as HH:mm:ss.fff.
Declaration
[JsonPropertyName("od")]
[MaxLength(12)]
[Key(12)]
public string? OverallDifference { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OverallGap
Time to the next car overall formatted as HH:mm:ss.fff.
Declaration
[JsonPropertyName("og")]
[MaxLength(12)]
[Key(11)]
public string? OverallGap { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OverallPosition
Car's overall position in the race by laps and as reported by the timing system.
Declaration
[JsonPropertyName("ovp")]
[Key(20)]
public int OverallPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
OverallPositionsGained
Number of position the car has gained overall. Negative number means positions lost. Value of -999 means not available.
Declaration
[JsonPropertyName("opg")]
[Key(23)]
public int OverallPositionsGained { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
OverallStartingPosition
Car's starting overall position inferred by the order the cars pass S/F at the start of the race or by the multiloop timing system if available.
Declaration
[JsonPropertyName("osp")]
[Key(22)]
public int OverallStartingPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
PenalityLaps
Laps lost due to penalties.
Declaration
[JsonPropertyName("pl")]
[Key(28)]
public int PenalityLaps { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
PenalityWarnings
Number of warnings issued.
Declaration
[JsonPropertyName("pw")]
[Key(29)]
public int PenalityWarnings { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
PitStopCount
Number of times the car pitted. Null if not supported by the timing system.
Declaration
[JsonPropertyName("psc")]
[Key(16)]
public int? PitStopCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
ProjectedLapTimeMs
Estimated lap time for the car.
Declaration
[JsonPropertyName("plt")]
[Key(42)]
public int ProjectedLapTimeMs { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
SessionId
Current session ID as reported by the timing system.
Declaration
[JsonPropertyName("sid")]
[MaxLength(11)]
[Key(1)]
public string? SessionId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TotalTime
Total race time formatted as HH:mm:ss.fff.
Declaration
[JsonPropertyName("ttm")]
[MaxLength(12)]
[Key(13)]
public string? TotalTime { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TrackFlag
Flag active for the overall track.
Declaration
[JsonPropertyName("flg")]
[Key(38)]
public Flags TrackFlag { get; set; }
Property Value
| Type | Description |
|---|---|
| Flags |
TrackPrecipitationPerc
Estimated precipitation on the track as a percentage. Value of 0 means no chance of precipitation, 100 means certain precipitation.
Declaration
[JsonPropertyName("precip")]
[Key(53)]
public int? TrackPrecipitationPerc { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
TrackTempDegF
Estimated temperature of the track in degrees Fahrenheit.
Declaration
[JsonPropertyName("temp")]
[Key(52)]
public int? TrackTempDegF { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
TransponderId
Car's main transponder ID as indicated by the timing system.
Declaration
[JsonPropertyName("tp")]
[Key(3)]
public uint TransponderId { get; set; }
Property Value
| Type | Description |
|---|---|
| uint |