Table of Contents

Class TripGeohash

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

false This stores unique geohash based on LogRecord for a Trip.

public class TripGeohash : Entity, IEntity, IComparable, IIdentifiable, IDeviceProvider, IDateTimeProvider
Inheritance
TripGeohash
Implements
Inherited Members

Constructors

TripGeohash()

Initializes a new instance of the TripGeohash class.

public TripGeohash()

TripGeohash(Id?, Device?, DateTime?, string?)

Initializes a new instance of the TripGeohash class.

public TripGeohash(Id? id, Device? device, DateTime? dateTime, string? geohash)

Parameters

id Id

Unique ID

device Device

The device.

dateTime DateTime?

Trip datetime.

geohash string

Geohash of precision 6

TripGeohash(TripGeohash)

Initializes a new instance of the TripGeohash class. Copy constructor - initializes a new instance of the TripGeohash class.

public TripGeohash(TripGeohash value)

Parameters

value TripGeohash

The trip geohash.

Properties

DateTime

Gets or sets the associated trip start date time.

public DateTime? DateTime { get; set; }

Property Value

DateTime?

Trip DateTime

Device

Gets or sets the Device associated with the TripGeohash.

public Device? Device { get; set; }

Property Value

Device

Device

Geohash

Gets or sets geohash of precision 6 based on latitude and longitude of LogRecord.

public string? Geohash { get; set; }

Property Value

string

string

Methods

Clone()

Creates a new object that is a copy of the current instance.

public override IEntity Clone()

Returns

IEntity

A new object that is a copy of this instance.

Equals(object?)

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

public override bool Equals(object? obj)

Parameters

obj object

The TripGeohash to compare with the current TripGeohash.

Returns

bool

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

GetHashCode()

Serves as a hash function for a particular type. Suitable for use in hashing algorithms and data structures like a hash table.

public override int GetHashCode()

Returns

int

A hash code for the current object.