---
title: location
framework: mapkit
role: symbol
role_heading: Instance Property
path: mapkit/mkuserlocation/location
---

# location

The location of the device.

## Declaration

```swift
var location: CLLocation? { get }
```

## Mentioned in

Converting a user’s location to a descriptive placemark

## Discussion

Discussion This property contains nil if the map view isn’t showing the user’s location, or if the map view is still determining the user’s location.

## See Also

### Related Documentation

- [Location and Maps Programming Guide](apple-archive/documentation/UserExperience/Conceptual/LocationAwarenessPG/Introduction.md)

### Determining the user’s location

- [isUpdating](mapkit/mkuserlocation/isupdating.md)
- [heading](mapkit/mkuserlocation/heading.md)
