Package-level declarations

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class ActivityRecord(val probableActivities: List<ProbableActivity> = emptyList(), val timestamp: String)

Represents an activity record with probable activities and a timestamp.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class FrequentPlace(val placeId: String, val placeLocation: String, val label: String)

Represents a frequent place with place ID, place location, and label.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class PlaceLocation(val latLng: String)

Represents a place location with latitude and longitude.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class Position(@Json(name = "LatLng") val latLng: String, val accuracyMeters: Int, val altitudeMeters: Double, val source: String, val timestamp: String, val speedMetersPerSecond: Double)

Represents a position with latitude/longitude, accuracy, altitude, source, timestamp, and speed.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class ProbableActivity(val type: String, val confidence: Double)

Represents a probable activity with a type and confidence level.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class RawSignal(val activityRecord: ActivityRecord?, val position: Position?)

Represents a raw signal containing activity and position data.

Link copied to clipboard
@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.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class TimelineData(val semanticSegments: List<SemanticSegment>, val rawSignals: List<RawSignal>, val userLocationProfile: UserLocationProfile)

Data class representing the timeline data.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class TimelinePoint(val point: String, val time: String)

Represents a timeline point with a geographical point and a timestamp.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class TopCandidate(val placeId: String, val semanticType: String, val probability: Double, val placeLocation: PlaceLocation)

Represents a top candidate with place ID, semantic type, probability, and place location.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class UserLocationProfile(val frequentPlaces: List<FrequentPlace>)

Represents a user location profile with a list of frequent places.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class Visit(val hierarchyLevel: Int, val probability: Double, val topCandidate: TopCandidate)

Represents a visit with hierarchy level, probability, and top candidate.