Warning

This feature is available in the Full MapKit SDK version

MMKMasstransitWeight

@interface MMKMasstransitWeight : NSObject

Numeric characteristics of a route or a route section.

Summary

Class methods

+ (nonnull MMKMasstransitWeight *)weightWithTime:(nonnull MMKLocalizedValue *)time
                                 walkingDistance:(nonnull MMKLocalizedValue *)walkingDistance
                                  transfersCount:( NSUInteger)transfersCount;

Properties

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *time;
Travel time for a route or a route section

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *walkingDistance;
Distance of the pedestrian part of the route or a route section

@property (nonatomic, readonly) NSUInteger transfersCount;
The number of transfers for a route or a route section

Class methods

weightWithTime:walkingDistance:transfersCount:

+ (nonnull MMKMasstransitWeight *)weightWithTime:(nonnull MMKLocalizedValue *)time
                                 walkingDistance:(nonnull MMKLocalizedValue *)walkingDistance
                                  transfersCount:( NSUInteger)transfersCount;


Properties

time

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

Travel time for a route or a route section.


walkingDistance

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

Distance of the pedestrian part of the route or a route section.


transfersCount

@property (nonatomic, readonly) NSUInteger transfersCount;

The number of transfers for a route or a route section.