<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRVisit",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SRVisit"
  },
  "title" : "SRVisit"
}
-->

# SRVisit

The user’s progress in their daily travel routine.

```
class SRVisit
```

## Overview

The [`visits`](/documentation/SensorKit/SRSensor/visits) sensor provides this class as its [`sample`](/documentation/SensorKit/SRFetchResult/sample) type.

## Topics

### Identifying a Visit

[`identifier`](/documentation/SensorKit/SRVisit/identifier)

A value that maps to a unique geographic location.

### Accessing Visit Information

[`arrivalDateInterval`](/documentation/SensorKit/SRVisit/arrivalDateInterval)

A range of time within which the user arrives at a location of interest.

[`departureDateInterval`](/documentation/SensorKit/SRVisit/departureDateInterval)

A range of time within which the user departs from a location of interest.

[`distanceFromHome`](/documentation/SensorKit/SRVisit/distanceFromHome)

The location’s distance from the home-category location.

[`locationCategory`](/documentation/SensorKit/SRVisit/locationCategory-swift.property)

The location’s type.

[`LocationCategory`](/documentation/SensorKit/SRVisit/LocationCategory-swift.enum)

Types of locations.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)