DataType.LOCATION: Wear OS Health Services data type
Read from Google’s documentation on 2026-10-04 · Google’s DataType reference last updated 2026-08-06
DataType.LOCATION is a DeltaDataType constant of Wear OS Health Services (androidx.health.services.client.data.DataType), declared as DeltaDataType<LocationData, SampleDataPoint<LocationData>>: each value is a LocationData delivered in a SampleDataPoint. Google describes it as: “Latitude, longitude and optionally, altitude and bearing at a specific point in time.” Google's Health Services permissions table lists it under ACCESS_FINE_LOCATION.
What Google says DataType.LOCATION is
Latitude, longitude and optionally, altitude and bearing at a specific point in time.
Accuracy for a DataPoint of type LOCATION is represented by LocationAccuracy.
Quoted from Google’s DataType reference, last updated 2026-08-06, read 2026-10-04.
Declared type
Read from the constant’s declaration in Google’s reference: the data-type class, then the value type and the data-point class it delivers.
- Constant
androidx.health.services.client.data.DataType.LOCATION- Declared type
DeltaDataType<LocationData, SampleDataPoint<LocationData>>- Data-type class
DeltaDataTypeGoogle: “DataType that represents a granular, non-aggregated point in time.”- Value type
LocationData- Data-point class
SampleDataPoint- Added in
- not printed for this constant; Google’s reference prints “Added in 1.0.0” for the DataType class in
androidx.health:health-services-client - Deprecated
- not marked deprecated in Google's reference
Permission
Google’s Health Services permissions table lists DataType.LOCATION under ACCESS_FINE_LOCATION. The row as printed, read 2026-10-04:
ABSOLUTE_ELEVATION LOCATION | ACCESS_FINE_LOCATION
Above the table, the same page lists the permissions Health Services uses, verbatim:
- READ_HEART_RATE for reading heart rate information.
- ACTIVITY_RECOGNITION
- ACCESS_FINE_LOCATION
- BODY_SENSORS on Wear OS 5.1 (API level 35) and lower
- BODY_SENSORS_BACKGROUND between Wear OS 4 (API level 33) and Wear OS 5.1 (API level 35), inclusive
Health Connect and HealthKit
No one-to-one pairing. This site’s cross-platform matrix pairs HealthKit types with Health Connect records only, so this page names no counterpart. What it does have is a metric guide: GPS Activity API: How to Get Route Data from Workouts lists DataType.LOCATION beside the types on the other platforms this site covers whose own descriptions name the same metric, each quoted, so you can see where they differ rather than assume they match.
Questions
- What permission does DataType.LOCATION need on Wear OS?
- ACCESS_FINE_LOCATION. Google's Health Services permissions table (read 2026-10-04) lists LOCATION in the row "ABSOLUTE_ELEVATION LOCATION | ACCESS_FINE_LOCATION".
- Is DataType.LOCATION a delta or an aggregate data type?
- A delta type: Google's reference declares it as DeltaDataType<LocationData, SampleDataPoint<LocationData>>. Google describes DeltaDataType as "DataType that represents a granular, non-aggregated point in time."
- What value type does DataType.LOCATION deliver?
- LocationData, in a SampleDataPoint, per the declaration DeltaDataType<LocationData, SampleDataPoint<LocationData>>. Google's description: "Latitude, longitude and optionally, altitude and bearing at a specific point in time."
- What else does Google's reference say about DataType.LOCATION?
- Accuracy for a DataPoint of type LOCATION is represented by LocationAccuracy.
Sources checked
- Google — DataType.LOCATION (Health Services reference) — last updated 2026-08-06 · read 2026-10-04
- Google — Health Services permissions — last updated 2026-01-19 · read 2026-10-04
Google’s descriptions are quoted for identification; the page layout and the capsule are AIFitnessAPI’s. Generated by scripts/fetch-health-services-data-types.mjs, not typed by hand — the same data as the full data-type table.