Skip to content

Trip Events

Info

This document is a work in progress.

Currently, User events contain below events, still working in progress:

  • Trip Events
    • TripStart Event - Should be sent by HMI/application when a new trip is started.
    • TripEnd Event - Should be sent by HMI/application one trip is ended.

Trip Events

TripStart Event

Should be sent by HMI/application when a new trip is started.

Key methods

None

Sample code

1
2
3
4
SendEventRequest.Builder builder = dataCollectorClient.sendEventRequest();
SendEventResponse response = builder
        .setEvent(TripStartEvent.builder()
        .build()).build().execute();
1
2
3
4
var builder = dataCollectorClient.sendEventRequest();
var response = builder
        .setEvent(TripStartEvent.builder()
        .build()).build().execute()

Response example

1
2
3
4
5
{
  "code": "SUCCESS",
  "message": "SendEventResponse Success",
  "response_time": 1
}

TripEnd Event

Should be sent by HMI/application one trip is ended.

Key methods

None

Sample code

1
2
3
4
SendEventRequest.Builder builder = dataCollectorClient.sendEventRequest();
SendEventResponse response = builder
    .setEvent(TripStartEvent.builder()
    .build()).build().execute();
1
2
3
4
var builder = dataCollectorClient.sendEventRequest();
var response = builder
    .setEvent(TripStartEvent.builder()
    .build()).build().execute()

Response example

1
2
3
4
5
{
  "code": "SUCCESS",
  "message": "SendEventResponse Success",
  "response_time": 1
}