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

# getsUserLocation

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

```
getsUserLocation?: boolean;
```

## Discussion

If you set this value to `true`, the request queries the browser for the user’s location to deliver relevant local results. The default value is `false`.

This value may not have an effect on some services.

---

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)