---
title: getsUserLocation
framework: mapkitjs
role: symbol
role_heading: Interface Property
path: mapkitjs/serviceconstructoroptions/getsuserlocation
---

# getsUserLocation

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

## Declaration

```data
getsUserLocation?: boolean;
```

## Discussion

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.

## See Also

### Search Initialization

- [coordinate](mapkitjs/searchconstructoroptions/coordinate.md)
- [language](mapkitjs/serviceconstructoroptions/language.md)
- [region](mapkitjs/searchconstructoroptions/region.md)
