# 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](/important-topics/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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sentiance.com/important-topics/sdk/api-reference/android/driving-insights/harshdrivingevent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
