---
title: slope
framework: coremotion
role: symbol
role_heading: Instance Property
path: coremotion/cmodometerdata/slope-9h3m4
---

# slope

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

## Declaration

```swift
var slope: Double? { get }
```

## Discussion

Discussion If the slope measurement is invalid, this property is nil.

## See Also

### Getting speed and slope

- [speed](coremotion/cmodometerdata/speed.md)
- [maxAbsSlope](coremotion/cmodometerdata/maxabsslope-9mnfd.md)
