<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/Search/SearchConstructor",
  "metadataVersion" : "0.1.0",
  "role" : "Constructor",
  "symbol" : {
    "kind" : "Constructor",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instctr/mapkit.Search/SearchConstructor"
  },
  "title" : "new Search(options)"
}
-->

# new Search(options)

Creates a search object with optional initial values that you provide.

```
constructor(options?: SearchConstructorOptions);
```

## Discussion

To use search, create an instance of a [`Search`](/documentation/MapKitJS/Search). You can optionally set properties of the search object by providing a dictionary of [`SearchConstructorOptions`](/documentation/MapKitJS/SearchConstructorOptions) on initialization.

```javascript
const search = new mapkit.Search({
    language: "en-GB",
    getsUserLocation: true,
    region: map.region
});
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)