An object that retrieves map-based search results for a user-entered query.
- MapKit JS 5.0+
Search allows developers to populate a map with results from a user-entered query, including information about businesses and other points of interest. This functionality is exposed through a search object that makes network requests to the search service.
Supplying search context creates the most relevant results to a query. Context may include the user's location, or a coordinate or region provided by the developer.
To use search, create an instance of a search object with the desired options. Use the search object to make search requests.