---
title: getsUserLocation
framework: mapkitjs
role: symbol
role_heading: Instance Property
path: mapkitjs/service/getsuserlocation
---

# getsUserLocation

A Boolean value that indicates whether the request returns results near a person’s location.

## Declaration

```data
get getsUserLocation(): boolean;
set getsUserLocation(value: boolean);
```

## Discussion

Discussion When set to true, the request returns results that are near the user’s current location. The default value is false.

## See Also

### Creating a geocoder object

- [new Geocoder(options)](mapkitjs/geocoder/geocoderconstructor.md)
- [ServiceConstructorOptions](mapkitjs/serviceconstructoroptions.md)
- [language](mapkitjs/service/language.md)
