Warning

This feature is available in the Full MapKit SDK version

MMKDrivingWeight

@interface MMKDrivingWeight : NSObject

Quantitative characteristics of any segment of the route.

Summary

Class methods

+ (nonnull MMKDrivingWeight *)weightWithTime:(nonnull MMKLocalizedValue *)time
                             timeWithTraffic:(nonnull MMKLocalizedValue *)timeWithTraffic
                                    distance:(nonnull MMKLocalizedValue *)distance;

Properties

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *time;
Time to travel, not considering traffic

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *timeWithTraffic;
Time to travel, considering traffic

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *distance;
Distance to travel

Class methods

weightWithTime:timeWithTraffic:distance:

+ (nonnull MMKDrivingWeight *)weightWithTime:(nonnull MMKLocalizedValue *)time
                             timeWithTraffic:(nonnull MMKLocalizedValue *)timeWithTraffic
                                    distance:(nonnull MMKLocalizedValue *)distance;


Properties

time

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *time;

Time to travel, not considering traffic.


timeWithTraffic

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *timeWithTraffic;

Time to travel, considering traffic.


distance

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *distance;

Distance to travel.