You can find a reference to all the types mentioned on this page here.
Get driving insights
// returns Promise<DrivingInsights>constdrivingInsights=awaitSentianceDrivingInsights.getDrivingInsights(transportId);// the transport event corresponding to driving insights.consttransportEvent=drivingInsights.transportEvent; // safety scores for the driving event.constsafetyScores=drivingInsights.safetyScores;// Smooth driving score value, between 0 and 1, where 1 is the perfect score.constsmoothScore=safetyScores.smoothScore;// Focused driving score value, between 0 and 1, where 1 is the perfect score.constfocusScore=safetyScores.focusScore;
constsubscription=awaitSentianceDrivingInsights.addDrivingInsightsReadyListener(drivingInsights => {// Driving insights received});// Don't forget to unsubscribe, typically in componentWillUnmountsubscription.remove();