SENTTransportEvent

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

@interface SENTTransportEvent : SENTTimelineEvent <NSSecureCoding>

distanceInMeters

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

@property (nonatomic, strong, readonly, nullable) NSNumber *distanceInMeters NS_REFINED_FOR_SWIFT;

occupantRole

The detected user occupant role. See SENTOccupantRole.

@property (nonatomic, assign, readonly) SENTOccupantRole occupantRole;

tags

The set of tags that you have previously set (if any) for this transport. See setTransportTags.

@property (nonatomic, strong, readonly) NSDictionary<NSString *, NSString *> *tags;

transportMode

The mode of transportation as SENTTimelineTransportMode.

@property (nonatomic, assign) SENTTimelineTransportMode transportMode;

waypoints

The waypoints collected during the transport.

@property (nonatomic, strong, readonly) NSArray<SENTWaypoint *> *waypoints;

isEqualToTransportEvent:

- (BOOL)isEqualToTransportEvent:(SENTTransportEvent *)transportEvent;

Last updated