MMKMasstransitTransportTransportThread

Warning

This feature is available in the Full MapKit SDK version

@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
                                                                   estimation:(nullable MMKMasstransitTravelEstimation *)estimation
                                                                        stops:(nonnull NSArray<MMKMasstransitTransportStop *> *)stops
                                                                     geometry:(nonnull MMKPolyline *)geometry;

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

@property (nonatomic, readonly, nullable)
    MMKMasstransitTravelEstimation *estimation;

Time estimation for transport thread

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitTransportStop *> *stops;

Collection of stops for the section

@property (nonatomic, readonly, nonnull) MMKPolyline *geometry;
Transport thread geometry

Class methods

transportThreadWithThread:isRecommended:alerts:alternateDepartureStop:boardingOptions:estimation:stops:geometry:

+ (nonnull MMKMasstransitTransportTransportThread *)transportThreadWithThread:(nonnull MMKMasstransitThread *)thread
                                                                isRecommended:( BOOL)isRecommended
                                                                       alerts:(nonnull NSArray<MMKMasstransitTransportThreadAlert *> *)alerts
                                                       alternateDepartureStop:(nullable MMKMasstransitStop *)alternateDepartureStop
                                                              boardingOptions:(nullable MMKMasstransitBoardingOptions *)boardingOptions
                                                                   estimation:(nullable MMKMasstransitTravelEstimation *)estimation
                                                                        stops:(nonnull NSArray<MMKMasstransitTransportStop *> *)stops
                                                                     geometry:(nonnull MMKPolyline *)geometry;


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.


estimation

@property (nonatomic, readonly, nullable)
    MMKMasstransitTravelEstimation *estimation;

Time estimation for transport thread.

Optional field, can be nil.


stops

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitTransportStop *> *stops;

Collection of stops for the section. The first stop in the collection is the stop for boarding the transport, and the last stop in the collection is the stop for exiting the transport.


geometry

@property (nonatomic, readonly, nonnull) MMKPolyline *geometry;

Transport thread geometry.