---
title: "location(precise:)"
framework: appintents
role: symbol
role_heading: Type Method
path: "appintents/appintenterror/permissionrequired/location(precise:)"
---

# location(precise:)

The person needs to allow the app to access their location.

## Declaration

```swift
static func location(precise: Bool = false) -> AppIntentError
```

## Discussion

Discussion The error message differs based on whether a person needs to give the app access to their precise or approximate location.
