---
title: "location(_:)"
framework: relevancekit
role: symbol
role_heading: Type Method
path: "relevancekit/relevantcontext/location(_:)"
---

# location(_:)

Tells the system a widget is relevant at a specific location.

## Declaration

```swift
static func location(_ exact: CLRegion) -> RelevantContext
```

## Parameters

- `exact`: A person’s location; for example, their favorite coffee shop.

## Return Value

Return Value A contextual clue that the system uses to determine the relevance of a widget in the Smart Stack on Apple Watch.

## Discussion

Discussion To indicate relevance at a specific location, request a person’s permission to access their location with the When in Use or Always access level. For more information on creating a widget that can access location information, refer to Accessing location information in widgets. note: Smart Stacks are available in iOS, iPadOS, and watchOS. However, functionality provided by RelevanceKit API is only available in watchOS. Calling its API on other platforms doesn’t have any effect. For more information, refer to Increasing the visibility of widgets in Smart Stacks.

## See Also

### Location clues

- [location(inferred:)](relevancekit/relevantcontext/location(inferred:).md)
- [RelevantContext.InferredLocation](relevancekit/relevantcontext/inferredlocation.md)
