Class TelematicsTripDetail

java.lang.Object
com.sentilant.telematicssdk.TelematicsTripDetail
All Implemented Interfaces:
Serializable

public class TelematicsTripDetail extends Object implements Serializable
Represents the detailed information of a Telematics trip. This class holds various metrics about a trip, such as distance, duration, events, and driving scores.
See Also:
  • Constructor Details

    • TelematicsTripDetail

      public TelematicsTripDetail()
      Default constructor for TelematicsTripDetail.
  • Method Details

    • getId

      public int getId()
      Gets the unique identifier for the trip.
      Returns:
      the trip ID.
    • getStartTimestamp

      public String getStartTimestamp()
      Gets the timestamp when the trip started.
      Returns:
      the start timestamp in ISO 8601 format.
    • getEndTimestamp

      public String getEndTimestamp()
      Gets the timestamp when the trip ended.
      Returns:
      the end timestamp in ISO 8601 format.
    • getDistance

      public double getDistance()
      Gets the distance covered during the trip.
      Returns:
      the distance in kilometers.
    • getCo2Emissions

      public double getCo2Emissions()
      Gets the CO2 emissions during the trip.
      Returns:
      the CO2 emissions in kg.
    • getDuration

      public double getDuration()
      Gets the duration of the trip.
      Returns:
      the trip duration in seconds.
    • getVehiclePlate

      public String getVehiclePlate()
      Gets the vehicle's license plate associated with the trip.
      Returns:
      the vehicle plate number.
    • getOverallScore

      public double getOverallScore()
      Gets the overall driving score for the trip.
      Returns:
      the overall score as a double.
    • getTotalEvents

      public int getTotalEvents()
      Gets the total number of driving events during the trip.
      Returns:
      the total number of events.
    • getAttentionScore

      public double getAttentionScore()
      Gets the attention score for the trip, based on the driver's focus.
      Returns:
      the attention score as a double.
    • getEconomyScore

      public double getEconomyScore()
      Gets the economy score for the trip, representing fuel efficiency and economical driving.
      Returns:
      the economy score as a double.
    • getDefensiveDrivingScore

      public double getDefensiveDrivingScore()
      Gets the defensive driving score for the trip.
      Returns:
      the defensive driving score as a double.
    • getFatigueScore

      public double getFatigueScore()
      Gets the fatigue score for the trip, which reflects driver tiredness.
      Returns:
      the fatigue score as a double.
    • getHardBrakingHighSpeedEvents

      public int getHardBrakingHighSpeedEvents()
      Gets the number of hard braking events at high speed during the trip.
      Returns:
      the count of hard braking events at high speed.
    • getHardBrakingLowSpeedEvents

      public int getHardBrakingLowSpeedEvents()
      Gets the number of hard braking events at low speed during the trip.
      Returns:
      the count of hard braking events at low speed.
    • getHardCorneringEvents

      public int getHardCorneringEvents()
      Gets the number of hard cornering events during the trip.
      Returns:
      the count of hard cornering events.
    • getAbruptAccelerationHighSpeedEvents

      public int getAbruptAccelerationHighSpeedEvents()
      Gets the number of abrupt acceleration events at high speed during the trip.
      Returns:
      the count of abrupt acceleration events at high speed.
    • getAbruptAccelerationLowSpeedEvents

      public int getAbruptAccelerationLowSpeedEvents()
      Gets the number of abrupt acceleration events at low speed during the trip.
      Returns:
      the count of abrupt acceleration events at low speed.
    • getSpeedingEvents

      public int getSpeedingEvents()
      Gets the number of speeding events during the trip.
      Returns:
      the count of speeding events.
    • getDistractionEvents

      public int getDistractionEvents()
      Gets the number of distraction events (e.g., phone usage) during the trip.
      Returns:
      the count of distraction events.
    • getStartLatitude

      public double getStartLatitude()
      Gets the latitude at the start of the trip.
      Returns:
      the starting latitude.
    • getStartLongitude

      public double getStartLongitude()
      Gets the longitude at the start of the trip.
      Returns:
      the starting longitude.
    • getEndLatitude

      public double getEndLatitude()
      Gets the latitude at the end of the trip.
      Returns:
      the ending latitude.
    • getEndLongitude

      public double getEndLongitude()
      Gets the longitude at the end of the trip.
      Returns:
      the ending longitude.