Skip to main content

GPS (lamp.gps)

Records the device's GPS coordinates. Depending on the device and battery level, the data source may alternate between GPS antennae (high accuracy), cellular triangulation (moderate accuracy), or WiFi triangulation (lower accuracy).

Configurationโ€‹

  • SensorSpec: lamp.gps
  • Sampling: Discrete (default 1 Hz โ€” 1 sample per second)
  • Platform: iOS, Android
  • Permissions: Location "Always" required

Configure sampling rate via the API.

API settings fields
SettingAPI FieldTypeDefaultMax
Sampling Ratefrequencynumber (Hz)15

Quality Factorsโ€‹

  • Location permissions must be set to "Always" (not "While Using").
  • Accuracy depends on GPS reception โ€” best outdoors, reduced indoors.
  • Battery optimization can restrict background location access.

Usageโ€‹

GPS data is collected continuously in the background. No participant action is required. The sensor automatically selects the best available location source (GPS, cellular, WiFi) based on conditions.

note

GPS data is recorded as raw latitude/longitude coordinates. Coordinates are not hashed or anonymized in the raw data.

Dataโ€‹

Fieldsโ€‹

FieldTypeDescription
latitudefloatLatitude in degrees
longitudefloatLongitude in degrees
altitudefloatAltitude in meters above sea level
accuracyfloatAccuracy radius in meters (68% confidence). 0.0 means no accuracy could be determined.

Exampleโ€‹

{
"timestamp": 1649859212042,
"sensor": "lamp.gps",
"data": {
"latitude": 42.3601,
"longitude": -71.0589,
"altitude": 12.5,
"accuracy": 10.0
}
}

Cortex Featuresโ€‹

gps (raw) โ†’ significant_locations, trips (primary) โ†’ hometime, entropy, trip_distance, trip_duration (secondary)

View in Portal | Python SDK | API Reference