SemanticSegment

@JsonClass(generateAdapter = true)
data class SemanticSegment(val startTime: String, val endTime: String, val startTimeTimezoneUtcOffsetMinutes: Int?, val endTimeTimezoneUtcOffsetMinutes: Int?, val timelinePath: List<TimelinePoint> = emptyList(), val visit: Visit?)

Represents a semantic segment with start and end times, timezone offsets, timeline path, and visit information.

Example JSON:

{
"startTime": "2023-10-01T08:00:00.000Z",
"endTime": "2023-10-01T09:00:00.000Z",
"startTimeTimezoneUtcOffsetMinutes": 0,
"endTimeTimezoneUtcOffsetMinutes": 0,
"timelinePath": [
{
"point": "40.712776°, -74.005974°",
"time": "2023-10-01T08:15:00.000Z"
},
{
"point": "40.713776°, -74.006974°",
"time": "2023-10-01T08:30:00.000Z"
}
],
"visit": {
"hierarchyLevel": 1,
"probability": 0.85,
"topCandidate": {
"placeId": "ChIJd8BlQ2BZwokRAFUEcm_qrcA",
"semanticType": "INFERRED_WORK",
"probability": 0.95,
"placeLocation": {
"latLng": "40.712776°, -74.005974°"
}
}
}
}

Constructors

Link copied to clipboard
constructor(startTime: String, endTime: String, startTimeTimezoneUtcOffsetMinutes: Int?, endTimeTimezoneUtcOffsetMinutes: Int?, timelinePath: List<TimelinePoint> = emptyList(), visit: Visit?)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val visit: Visit?