> For the complete documentation index, see [llms.txt](https://docs.sentiance.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sentiance.com/sdk/api-reference/android/driving-insights/harshdrivingevent.md).

# HarshDrivingEvent

## HarshDrivingEvent API

### `getConfidence()`

> ```java
> int getConfidence()
> ```
>
> Returns the confidence in the harsh event, between 0 and 100.

### `getMagnitude()`

> ```java
> double getMagnitude()
> ```
>
> Returns the magnitude of the harsh event, in m/s^2.

### `getEndTime()`

> ```java
> DateTime getEndTime()
> ```
>
> Returns the end date and time of occurrence of the event.

### `getStartTime()`

> ```java
> DateTime getStartTime()
> ```
>
> Returns the start date and time of occurrence of the event.

### `getType()`

> ```java
> Type getType()
> ```
>
> Returns the type of harsh event. See [Type](/sdk/api-reference/android/driving-insights/harshdrivingevent/type.md).

### `getWaypoints()`

> ```java
> List<Waypoint> getWaypoints()
> ```
>
> Returns a list of transport waypoints that indicate the segment of the transport where the event occurred.
