search(options)
Fetches points of interest.
Declaration
search(
options?: PointsOfInterestSearchOptions,
): Promise<PointsOfInterestSearchResponse>;Parameters
- options:
A Pointsofinterestsearchoptions object that can overwrite the same options set on the property or that you supplied to the Pointsofinterestsearch constructor.
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".