LocationRecord

@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.

Constructors

Link copied to clipboard
constructor(accuracy: Int?, activeWifiScan: WifiScan?, activity: List<ActivityRecord>?, altitude: Int?, batteryCharging: Boolean?, deviceDesignation: String?, deviceTag: Int?, osLevel: Int?, heading: Int?, latitudeE7: Int?, locationMetadata: List<LocationMetadata>?, longitudeE7: Int?, platformType: String?, source: LocationRecordSource?, timestamp: String, velocity: Int?, verticalAccuracy: Int?)

Properties

Link copied to clipboard

Approximate accuracy radius of the location measurement, in meters. A lower value means better precision.

Link copied to clipboard

Information about the access points found in a Wi-Fi scan done by the device and associated with this location record.

Link copied to clipboard

Detected activity information at this location, as a list of activity records at slightly different timestamps but all associated with this location record.

Link copied to clipboard

Altitude above the WGS84 reference ellipsoid, in meters.

Link copied to clipboard

Whether the device was charging its battery or not at the time of the record.

Link copied to clipboard

Common values found are: PRIMARY, UNKNOWN.

Link copied to clipboard

Integer identifier (specific to Location History) associated with the device that uploaded the location. Refer to deviceSettings in Settings.json for information about the device with this deviceTag.

Link copied to clipboard
val heading: Int?

Heading in degrees east of true north, from 0 to 359.

Link copied to clipboard

WGS84 Latitude coordinate of the location. Degrees multiplied by 10^7 and rounded to the nearest integer, in the range -900000000 to +900000000 (divide value by 10^7 for the usual range -90° to +90°).

Link copied to clipboard

Additional location metadata. List of different Wi-Fi scans associated with this location record.

Link copied to clipboard

WGS84 Longitude coordinate of the location. Degrees multiplied by 10^7 and rounded to the nearest integer, in the range -1800000000 to +1800000000 (divide value by 10^7 for the usual range -180° to +180°).

Link copied to clipboard
val osLevel: Int?

The version of the device's operating system that provided this record. In Android devices, this corresponds to the API Level (e.g. 28 is Android 9 Pie).

Link copied to clipboard

Platform of the device that provided this record. Valid values are: ANDROID, IOS and UNKNOWN.

Link copied to clipboard

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

Link copied to clipboard

Timestamp (as an ISO 8601 string) of the record.

Link copied to clipboard

Measured velocity (ground speed) in meters per second.

Link copied to clipboard

Calculated accuracy of the location's altitude measurement, in meters. A lower value means better precision.