-
- All Implemented Interfaces:
public class TripInfoEvent extends ApplicationEventTelemetry event for trip info event analytics.
Build with builder, populate required payload fields, and upload via sendEventRequest.
Maps to schema definition
TripInfo.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTripInfoEvent.Builder
-
Method Summary
Modifier and Type Method Description DoublegetMaxSpeed()Get Max speed during the trip (m/s) DoublegetDistance()Get Travel distance in meters IntegergetDuration()Get Travel duration in ms IntegergetNightDuration()Get Night time travel duration in ms IntegergetMovingDuration()Returns moving duration. IntegergetNightMovingDuration()Returns night moving duration. DoublegetNightDistance()Returns night distance. EventTypegetEventType()Returns event type. static TripInfoEvent.Builderbuilder()Creates a new builder for constructing an instance. -
-
Method Detail
-
getMaxSpeed
Double getMaxSpeed()
Get Max speed during the trip (m/s)
-
getDistance
Double getDistance()
Get Travel distance in meters
-
getDuration
Integer getDuration()
Get Travel duration in ms
-
getNightDuration
Integer getNightDuration()
Get Night time travel duration in ms
-
getMovingDuration
Integer getMovingDuration()
Returns moving duration.
-
getNightMovingDuration
Integer getNightMovingDuration()
Returns night moving duration.
-
getNightDistance
Double getNightDistance()
Returns night distance.
-
getEventType
EventType getEventType()
Returns event type.
-
builder
static TripInfoEvent.Builder builder()
Creates a new builder for constructing an instance.
Use fluent setter methods before calling build().
-
-
-
-