Package com.sentilant.telematicssdk
Class TelematicsTripResume
java.lang.Object
com.sentilant.telematicssdk.TelematicsTripResume
- All Implemented Interfaces:
Serializable
Represents a summary of a telematics trip.
This class contains basic trip information such as start and end timestamps, distance, and driving score.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the distance covered during the trip.intGets the duration of the trip.doubleGets the latitude at the end of the trip.doubleGets the longitude at the end of the trip.Gets the timestamp when the trip ended.intgetId()Gets the unique identifier for the trip.doubleGets the overall driving score for the trip.doubleGets the latitude at the start of the trip.doubleGets the longitude at the start of the trip.Gets the timestamp when the trip started.intGets the total number of events recorded during the trip.Gets the vehicle's license plate associated with the trip.
-
Constructor Details
-
TelematicsTripResume
public TelematicsTripResume()Default constructor for TelematicsTripResume.
-
-
Method Details
-
getId
public int getId()Gets the unique identifier for the trip.- Returns:
- the trip ID.
-
getStartTimestamp
Gets the timestamp when the trip started.- Returns:
- the start timestamp in ISO 8601 format.
-
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.
-
getDuration
public int getDuration()Gets the duration of the trip.- Returns:
- the trip duration in seconds.
-
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 events recorded during the trip.- Returns:
- the total number of 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.
-