Contents

search(options)

Fetches points of interest.

Declaration

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

Parameters

Return Value

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

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