# SENTTransportEvent

Represents a duration of the time when the user was in transport.

### SENTTransportEvent API

{% hint style="info" %}
This class extends SENTTimelineEvent. See [SENTTimelineEvent](https://docs.sentiance.com/important-topics/sdk/api-reference/ios/event-timeline/senttimelineevent) for additional properties and methods.
{% endhint %}

### distanceInMeters

The distance travelled during the transport, in meters. If distance cannot be computed, then returns nil.

```swift
var distanceInMeters: Int?
```

### isEqual

```swift
func isEqual(to transportEvent: SENTTransportEvent) -> Bool
```

### occupantRole

The detected user occupant role. See [SENTOccupantRole](https://docs.sentiance.com/important-topics/sdk/api-reference/ios/event-timeline/sentoccupantrole).

```swift
var occupantRole: SENTOccupantRole
```

### tags

The set of tags that you have previously set (if any) for this transport. See [setTransportTags](https://docs.sentiance.com/important-topics/sdk/android/eventtimeline/eventtimelineapi#settransporttags).

```swift
var tags: [String: String]
```

### transportMode

The mode of transportation as [SENTTimelineTransportMode](https://docs.sentiance.com/important-topics/sdk/api-reference/ios/event-timeline/senttimelinetransportmode).

```swift
var transportMode: SENTTimelineTransportMode
```

### waypoints

The waypoints collected during the transport.

```swift
var waypoints: [SENTWaypoint]
```
