Class TripGeohash
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
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
IdUnique ID
device
DeviceThe device.
dateTime
DateTime?Trip datetime.
geohash
stringGeohash 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
TripGeohashThe 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
Geohash
Gets or sets geohash of precision 6 based on latitude and longitude of LogRecord.
public string? Geohash { get; set; }
Property Value
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
objectThe 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.