---
title: rangingUnavailable
framework: corelocation
role: symbol
role_heading: Type Property
path: corelocation/clerror-swift.struct/rangingunavailable
---

# rangingUnavailable

A constant that indicates ranging is disabled.

## Declaration

```swift
static var rangingUnavailable: CLError.Code { get }
```

## Discussion

Discussion This error might occur if the device is in Airplane mode or if Bluetooth or location services are disabled.

## See Also

### Getting general errors

- [locationUnknown](corelocation/clerror-swift.struct/locationunknown.md)
- [denied](corelocation/clerror-swift.struct/denied.md)
- [promptDeclined](corelocation/clerror-swift.struct/promptdeclined.md)
- [network](corelocation/clerror-swift.struct/network.md)
- [headingFailure](corelocation/clerror-swift.struct/headingfailure.md)
- [rangingFailure](corelocation/clerror-swift.struct/rangingfailure.md)
- [CLError.Code](corelocation/clerror-swift.struct/code.md)
