Home > @magiclane/maps-sdk > DriverBehaviour

DriverBehaviour class

The driver behaviour class.

Provides methods for starting, stopping, managing and getting driver behaviour analysis.

Driver Behaviour

Signature:

export declare class DriverBehaviour 

Constructors

Constructor

Modifiers

Description

(constructor)(dataSource, useMapMatch)

Create a new driver behaviour instance.

Properties

Property

Modifiers

Type

Description

allDriverBehaviourAnalyses

readonly

any[]

Get all driver behavior analysis (property getter version).

instantaneousScores

readonly

any

Get the instantaneous scores (property getter version).

lastAnalysis

readonly

any

Get the last analysis (property getter version).

ongoingAnalysis

readonly

any

Get the ongoing analysis (property getter version).

pointerId

readonly

number | bigint

Methods

Method

Modifiers

Description

dispose()

eraseAnalysesOlderThan(time)

Erase analysis older than the specified time.

getAllDriverBehaviourAnalyses()

Get all driver behavior analysis.

getCombinedAnalysis(startTime, endTime)

Get an analysis constructed from all analysis from the specified time period.

getInstantaneousScores()

Get the instantaneous scores (related to the ongoing analysis).

getLastAnalysis()

Get the last analysis (most recent created).

getOngoingAnalysis()

Get the ongoing analysis.

init(id)

static

startAnalysis()

Start a new analysis.

stopAnalysis()

Stop the current analysis and get its result.