Contents

PointsOfInterestSearch

An object that fetches points of interest within a specified region.

Declaration

class PointsOfInterestSearch extends Service

Mentioned in

Overview

Use PointsOfInterestSearch to fetch points of interest. Mapkit JS exposes this functionality through a search object that makes network requests to the search service. To use search, create an instance of a PointsOfInterestSearch object with the desired options and use the instance to make search requests. You may optionally specify a PointOfInterestFilter that lists categories to include or exclude. The default behavior of the fetch returns all points of interest.

To leverage the map’s current region to request points of interest, create a request with a rectangular bounding box using a CoordinateRegion. The request fetches points of interest within the rectangular region.

To retrieve points of interest nearby or “around the user,” create a request with a circular area defined by a center point of Coordinate and a radius in meters.

If you set a language ID, the fetch returns addresses in the selected language, if available; for instance, fr-CA or fr-FR. If you don’t provide a language ID, the fetch request uses the language ID initialized with the map.

Topics

Creating a Points of Interest Search

Fetching points of interest

Canceling a points of interest search

See Also

Points of interest