Table of Contents

Class SpeedLimitChanges

Namespace
Geotab.Checkmate.ObjectModel
Assembly
Geotab.Checkmate.ObjectModel.dll

A list of speed limit change results.

public class SpeedLimitChanges
Inheritance
SpeedLimitChanges
Inherited Members

Constructors

SpeedLimitChanges()

Initializes a new instance of the SpeedLimitChanges class. The empty constructor.

public SpeedLimitChanges()

SpeedLimitChanges(double[], double[])

Initializes a new instance of the SpeedLimitChanges class. The constructor.

public SpeedLimitChanges(double[] indexRatios, double[] speedLimits)

Parameters

indexRatios double[]

The array of ratios that represent the ratio of distance or time (depends on usage context) changes between two coordinate indexes where a change in the speed limit happened.

speedLimits double[]

The array of speed limit change values for each index ratio element in indexRatios array.

Properties

IndexRatios

Gets or sets the array of ratios that represent the ratio of distance or time (depends on the usage context) changes between two coordinate indexes where a change in the speed limit happened. For example, if the speed limit changes halfway in between point2 and point3, we would return and index of 2.5.

public double[] IndexRatios { get; set; }

Property Value

double[]

The array of distance ratios.

SpeedLimits

Gets or sets the array of speed limit change values for each index ratio.

public double[] SpeedLimits { get; set; }

Property Value

double[]

The array of speed limit change values.

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current object.