Package-level declarations

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class ActivityRecord(@Json(name = "detectedActivities") val detectedActivities: List<DetectedActivityItem>, @Json(name = "timestamp") val timestamp: ZonedDateTime)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class DetectedActivityItem(@Json(name = "activityType") val activityType: String, @Json(name = "probability") val probability: Double)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class Metadata(@Json(name = "platform") val platform: String)

Metadata about the data object.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class PlaceAggregateInfoItem(@Json(name = "score") val score: Double, @Json(name = "numBucketsWithLocation") val numBucketsWithLocation: Int?, @Json(name = "bucketSpanDays") val bucketSpanDays: Int?, @Json(name = "point") val point: Point, @Json(name = "placeId") val placeId: String, @Json(name = "placePoint") val placePoint: Point)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class PlaceAggregates(@Json(name = "placeAggregateInfo") val placeAggregateInfo: List<PlaceAggregateInfoItem> = emptyList(), @Json(name = "windowSizeHrs") val windowSizeHrs: Int, @Json(name = "topRankedPlacesPlaceIds") val topRankedPlacesPlaceIds: List<String>, @Json(name = "processWindow") val processWindow: ProcessWindow, @Json(name = "metadata") val metadata: Metadata?)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class Point(@Json(name = "latE7") val latE7: Int, @Json(name = "lngE7") val lngE7: Int)

The geographical point.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class Position(@Json(name = "point") val point: Point, @Json(name = "accuracyMm") val accuracyMm: Int?, @Json(name = "altitudeMeters") val altitudeMeters: Double?, @Json(name = "source") val source: String?, @Json(name = "speedMetersPerSecond") val speedMetersPerSecond: Double?, @Json(name = "timestamp") val timestamp: ZonedDateTime)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class ProcessWindow(@Json(name = "startTime") val startTime: String, @Json(name = "endTime") val endTime: String)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class RawSignal(@Json(name = "signal") val signal: Signal?, @Json(name = "additionalTimestamp") val additionalTimestamp: String?, @Json(name = "metadata") val metadata: Metadata?)

Raw signal data from the device.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class Signal(@Json(name = "position") val position: Position?, @Json(name = "activityRecord") val activityRecord: ActivityRecord?, @Json(name = "wifiScan") val wifiScan: WifiScan?)

The signal data, including position, activity record, and wifi scan.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class TimelineEdits(@Json(name = "timelineEdits") val items: List<TimelineEditsItem> = emptyList())

List of all timeline edits.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class TimelineEditsItem(@Json(name = "deviceId") val deviceId: String, @Json(name = "placeAggregates") val placeAggregates: PlaceAggregates?, @Json(name = "rawSignal") val rawSignal: RawSignal?)

Various information about the timeline edit, including device ID, place aggregates, and raw signal data.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class WifiDevice(@Json(name = "mac") val mac: String, @Json(name = "rawRssi") val rawRssi: Int)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class WifiScan(@Json(name = "deliveryTime") val deliveryTime: String, @Json(name = "devices") val devices: List<WifiDevice> = emptyList(), @Json(name = "source") val source: String?)