Package-level declarations

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class AccessPoint(val mac: String, val strength: Int, val frequencyMhz: Int, val isConnected: Boolean?)

Information about a specific wireless access point or router.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class Activity(val type: ActivityType = ActivityType.UNKNOWN, val confidence: Int?)

A detected activity with an associated confidence. Descriptions partially based on: https://developers.google.com/android/reference/com/google/android/gms/location/DetectedActivity

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

Activity information for a location at a given timestamp.

Link copied to clipboard

Enum class for different types of activities detected by the device, used in Activity.type.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class LocationMetadata(val timestamp: String, val wifiScan: WifiScan)

Information about a Wi-Fi scan done by the device at a given timestamp.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class LocationRecord(val accuracy: Int?, val activeWifiScan: WifiScan?, val activity: List<ActivityRecord>?, val altitude: Int?, val batteryCharging: Boolean?, val deviceDesignation: String?, val deviceTag: Int?, val osLevel: Int?, val heading: Int?, val latitudeE7: Int?, val locationMetadata: List<LocationMetadata>?, val longitudeE7: Int?, val platformType: String?, val source: LocationRecordSource?, val timestamp: String, val velocity: Int?, val verticalAccuracy: Int?)

A specific location record. Contains the information obtained from a user's device at a specific moment in time and at a given location.

Link copied to clipboard

Represents the source (technology) that provided the location information for this record. Common values are: WIFI, CELL, GPS, UNKNOWN (note: sometimes found in lowercase). Example: "WIFI"

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class Records(@Json(name = "locations") val locations: List<LocationRecord>)

The Records.json file in a Google Takeout Location History extraction. Contains raw Location History information from the user's account.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class WifiScan(@Json(name = "accessPoints") val accessPoints: List<AccessPoint>)

Information about the access points found in a Wi-Fi scan done by the device.