YMKJamSegment

@interface YMKJamSegment : NSObject

A segment of a traffic jam that has specific traffic conditions.

Summary

Class methods

+ (nonnull YMKJamSegment *)jamSegmentWithJamType:( YMKJamType)jamType
                                           speed:( double)speed;

Properties

@property (nonatomic, readonly) YMKJamType jamType;
The type of the traffic jam

@property (nonatomic, readonly) double speed;
The speed at which traffic is moving

Class methods

jamSegmentWithJamType:speed:

+ (nonnull YMKJamSegment *)jamSegmentWithJamType:( YMKJamType)jamType
                                           speed:( double)speed;


Properties

jamType

@property (nonatomic, readonly) YMKJamType jamType;

The type of the traffic jam.


speed

@property (nonatomic, readonly) double speed;

The speed at which traffic is moving.