<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRSensor/odometer",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:@SRSensorOdometer"
  },
  "title" : "odometer"
}
-->

# odometer

A sensor that provides information about speed and slope.

```
static let odometer: SRSensor
```

## Discussion

The [`sample`](/documentation/SensorKit/SRFetchResult/sample) type for this sensor is <doc://com.apple.documentation/documentation/CoreMotion/CMOdometerData>.

You need to provide a reason to record the user’s odometer by adding the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/NSSensorKitUsageDetail/SRSensorUsageOdometer> dictionary to the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/NSSensorKitUsageDetail> key in the information property list.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)