<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMotion",
  "identifier" : "/documentation/CoreMotion/CMOdometerData",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core Motion"
    ],
    "preciseIdentifier" : "c:objc(cs)CMOdometerData"
  },
  "title" : "CMOdometerData"
}
-->

# CMOdometerData

A class that represents odometer data for workouts.

```
class CMOdometerData
```

## Overview

To get the measurements, use the [`speed`](/documentation/CoreMotion/CMOdometerData/speed) and [`slope`](/documentation/CoreMotion/CMOdometerData/slope-96hlt) properties. To compute distances, use the [`deltaDistance`](/documentation/CoreMotion/CMOdometerData/deltaDistance) and [`deltaAltitude`](/documentation/CoreMotion/CMOdometerData/deltaAltitude) properties.

## Topics

### Getting speed and slope

[`speed`](/documentation/CoreMotion/CMOdometerData/speed)

The instantaneous velocity of the device, measured in meters per second.

[`slope`](/documentation/CoreMotion/CMOdometerData/slope-9h3m4)

The slope at the location toward the direction of travel, measured in degrees.

[`maxAbsSlope`](/documentation/CoreMotion/CMOdometerData/maxAbsSlope-9mnfd)

The maximum absolute slope at the location toward all directions, measured in degrees.

[`slope`](/documentation/CoreMotion/CMOdometerData/slope-96hlt)

The slope at the location toward the direction of travel, measured in degrees.

[`maxAbsSlope`](/documentation/CoreMotion/CMOdometerData/maxAbsSlope-96ulr)

The maximum absolute slope at the location toward all directions, measured in degrees.

### Getting date and times

[`startDate`](/documentation/CoreMotion/CMOdometerData/startDate)

The time that the device starts recording the odometer data.

[`endDate`](/documentation/CoreMotion/CMOdometerData/endDate)

The time that the device stops recording the odometer data.

[`gpsDate`](/documentation/CoreMotion/CMOdometerData/gpsDate)

The time of the GPS measurement associated with the location.

### Measuring distances

[`deltaDistance`](/documentation/CoreMotion/CMOdometerData/deltaDistance)

The change in distance that the user travels since the last location, measured in meters.

[`deltaAltitude`](/documentation/CoreMotion/CMOdometerData/deltaAltitude)

The change in altitude above mean sea level associated with the location, measured in meters.

### Getting the location accuracy

[`speedAccuracy`](/documentation/CoreMotion/CMOdometerData/speedAccuracy)

The accuracy of the speed value.

[`verticalAccuracy`](/documentation/CoreMotion/CMOdometerData/verticalAccuracy)

The validity of the altitude values and their estimated uncertainty, measured in meters.

[`deltaDistanceAccuracy`](/documentation/CoreMotion/CMOdometerData/deltaDistanceAccuracy)

The accuracy of the change in distance value.

### Getting the device

[`originDevice`](/documentation/CoreMotion/CMOdometerData/originDevice)

The device that measures the data.

[`CMOdometerOriginDevice`](/documentation/CoreMotion/CMOdometerOriginDevice)

The device that the odometer sample originates from.



---

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)