Warning

This feature is available in the Full MapKit SDK version

MMKMasstransitTransportTransportThread

@interface MMKMasstransitTransportTransportThread : NSObject

MMKMasstransitThread specific properties of a mass transit ride section of a MMKMasstransitRoute.

Summary

Class methods

+ (nonnull MMKMasstransitTransportTransportThread *)transportThreadWithThread:(nonnull MMKMasstransitThread *)thread
                                                                isRecommended:( BOOL)isRecommended
                                                                       alerts:(nonnull NSArray<MMKMasstransitTransportThreadAlert *> *)alerts
                                                       alternateDepartureStop:(nullable MMKMasstransitStop *)alternateDepartureStop
                                                              boardingOptions:(nullable MMKMasstransitBoardingOptions *)boardingOptions;

Properties

@property (nonatomic, readonly, nonnull) MMKMasstransitThread *thread;
Mass transit thread

@property (nonatomic, readonly) BOOL isRecommended;
Indicates that the mass transit router considers this thread the best one for the current section of the constucted route

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitTransportThreadAlert *> *alerts;

Collection of important annotations for the section

@property (nonatomic, readonly, nullable)
    MMKMasstransitStop *alternateDepartureStop;

If alternateDepartureStop is specified, it specifies the departure location for this particular Thread instead of the first Stop of the Section

@property (nonatomic, readonly, nullable)
    MMKMasstransitBoardingOptions *boardingOptions;

Recommended underground boarding options for this section

Class methods

transportThreadWithThread:isRecommended:alerts:alternateDepartureStop:boardingOptions:

+ (nonnull MMKMasstransitTransportTransportThread *)transportThreadWithThread:(nonnull MMKMasstransitThread *)thread
                                                                isRecommended:( BOOL)isRecommended
                                                                       alerts:(nonnull NSArray<MMKMasstransitTransportThreadAlert *> *)alerts
                                                       alternateDepartureStop:(nullable MMKMasstransitStop *)alternateDepartureStop
                                                              boardingOptions:(nullable MMKMasstransitBoardingOptions *)boardingOptions;


Properties

thread

@property (nonatomic, readonly, nonnull) MMKMasstransitThread *thread;

Mass transit thread.


isRecommended

@property (nonatomic, readonly) BOOL isRecommended;

Indicates that the mass transit router considers this thread the best one for the current section of the constucted route.


alerts

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitTransportThreadAlert *> *alerts;

Collection of important annotations for the section.


alternateDepartureStop

@property (nonatomic, readonly, nullable)
    MMKMasstransitStop *alternateDepartureStop;

If alternateDepartureStop is specified, it specifies the departure location for this particular Thread instead of the first Stop of the Section.

Optional field, can be nil.


boardingOptions

@property (nonatomic, readonly, nullable)
    MMKMasstransitBoardingOptions *boardingOptions;

Recommended underground boarding options for this section.

Optional field, can be nil.