new Search(options)
Creates a search object with optional initial values that you provide.
Declaration
constructor(options?: SearchConstructorOptions);Discussion
To use search, create an instance of a Search. You can optionally set properties of the search object by providing a dictionary of SearchConstructorOptions on initialization.
const search = new mapkit.Search({
language: "en-GB",
getsUserLocation: true,
region: map.region
});