<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/ServiceConstructorOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Interface",
  "symbol" : {
    "kind" : "Interface",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "struct/mapkit.ServiceConstructorOptions"
  },
  "title" : "ServiceConstructorOptions"
}
-->

# ServiceConstructorOptions

Common options you provide when you create a service object.

```
interface ServiceConstructorOptions
```

## Topics

### Instance Properties

[`getsUserLocation?: boolean;`](/documentation/MapKitJS/ServiceConstructorOptions/getsUserLocation)

A Boolean value that indicates whether to limit the results to the user’s location, according to the web browser.

[`language?: string;`](/documentation/MapKitJS/ServiceConstructorOptions/language)

A language identifier that determines the language for the service results text.

## Relationships

### Inherited By

[`PointsOfInterestSearchConstructorOptions`](/documentation/MapKitJS/PointsOfInterestSearchConstructorOptions)

[`SearchConstructorOptions`](/documentation/MapKitJS/SearchConstructorOptions)

---

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)