---
title: search(options)
framework: mapkitjs
role: symbol
role_heading: Instance Method
path: mapkitjs/pointsofinterestsearch/search
---

# search(options)

Fetches points of interest.

## Declaration

```data
search(
    options?: PointsOfInterestSearchOptions,
): Promise<PointsOfInterestSearchResponse>;
```

## Parameters

- `options`: A doc://com.apple.mapkitjs/documentation/MapKitJS/PointsOfInterestSearchOptions object that can overwrite the same options set on the property or that you supplied to the doc://com.apple.mapkitjs/documentation/MapKitJS/PointsOfInterestSearch constructor.

## Return Value

Return Value A promise that resolves with a PointsOfInterestSearchResponse on success, or rejects with an Error on failure.

## Discussion

Discussion The search(options) method returns a set of points of interest within the region defined and matching the PointOfInterestFilter. Pass an AbortSignal from an AbortController to the signal option to allow the controller to cancel a pending request. When the controller aborts, the promise it returns rejects with a DOMException whose name is "AbortError".

## See Also

### Fetching points of interest

- [PointsOfInterestSearchDelegate](mapkitjs/pointsofinterestsearchdelegate.md)
- [PointsOfInterestSearchResponse](mapkitjs/pointsofinterestsearchresponse.md)
