---
title: "resolveLocation(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insearchfornotebookitemsintenthandling/resolvelocation(for:with:)"
---

# resolveLocation(for:with:)

Resolves how to use a location value during the search.

## Declaration

```swift
optional func resolveLocation(for intent: INSearchForNotebookItemsIntent, with completion: @escaping @Sendable (INPlacemarkResolutionResult) -> Void)
```

```swift
optional func resolveLocation(for intent: INSearchForNotebookItemsIntent) async -> INPlacemarkResolutionResult
```

## Parameters

- `intent`: The intent object containing details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- `completion`: The handler block to execute with the resolution. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

## Discussion

Discussion Implement this method to resolve how to use a location value during the search. Use this method to verify that you can perform a location-based search for the type specified by the locationSearchType property of the intent. If the type is INLocationSearchType.unknown or you do not consider locations when performing the search, you can return a resolution indicating that the location type is not required. Return a successful resolution if you support searching using the specified type or return a different result if you do not support the specific type requested by the user.

## See Also

### Resolving the Intent Parameters

- [resolveItemType(for:with:)](intents/insearchfornotebookitemsintenthandling/resolveitemtype(for:with:).md)
- [resolveTitle(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvetitle(for:with:).md)
- [resolveContent(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvecontent(for:with:).md)
- [resolveStatus(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvestatus(for:with:).md)
- [resolveDateSearchType(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvedatesearchtype(for:with:).md)
- [resolveDateTime(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvedatetime(for:with:).md)
- [resolveLocationSearchType(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvelocationsearchtype(for:with:).md)
- [resolveTaskPriority(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvetaskpriority(for:with:).md)
- [resolveTemporalEventTriggerTypes(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvetemporaleventtriggertypes(for:with:).md)
