DriverBehaviour constructor
DriverBehaviour({
- required DataSource dataSource,
- required bool useMapMatch,
Creates a new driver behaviour instance.
Parameters
dataSource: The configured DataSource that provides position and sensor data used for analysis.useMapMatch: If true, position samples will be matched to the road network before analysis which can improve event detection accuracy.
Also see:
- DataSource.createLiveDataSource - To create a live data source from sensors.
Implementation
factory DriverBehaviour({
required final DataSource dataSource,
required final bool useMapMatch,
}) {
return DriverBehaviour._create(dataSource, useMapMatch);
}