TransportSegment
Last updated
Last updated
This document refers to deprecated parts of the platform and has been left intact to help customers with legacy integrations. In order to access the latest platform features and documentation, please go to https://docs.sentiance.com.
Deprecated
This class was deprecated in v4.21.0, as part of the Trip Profiling feature deprecation.
A segment is a section of the trip where the user was using the same for the specified time range. When the mode is VehicleMode.VEHICLE
, certain transport metrics can be accessed using the methods below.
getAverageSpeed()
Returns the average speed travelled in m/s.
getDistance()
Returns the cumulative distance covered in this segment in meters.
getEndTime()
Returns the segment's end time, in UTC milliseconds since January 1, 1970.
getHardEvents()
getPercentOfTimeSpeeding()
Returns the percent of time the user was speeding.
getStartTime()
Returns the segment's start time, in UTC milliseconds since January 1, 1970.
getTopSpeed()
Returns the top speed travelled in m/s.
getVehicleMode()
Returns a list of objects for all the times the device has experienced an unusual amount of force while in . Otherwise returns null.
Returns the vehicle mode of this segment. See for more details.