YMKMasstransitTransportTransportThread

Warning

This feature is available in the Full MapKit SDK version

@interface YMKMasstransitTransportTransportThread : NSObject

YMKMasstransitThread specific properties of a mass transit ride section of a YMKMasstransitRoute.

Summary

Class methods

+ (nonnull YMKMasstransitTransportTransportThread *)transportThreadWithThread:(nonnull YMKMasstransitThread *)thread
                                                                isRecommended:( BOOL)isRecommended
                                                                       alerts:(nonnull NSArray<YMKMasstransitTransportThreadAlert *> *)alerts
                                                       alternateDepartureStop:(nullable YMKMasstransitStop *)alternateDepartureStop
                                                              boardingOptions:(nullable YMKMasstransitBoardingOptions *)boardingOptions
                                                                   estimation:(nullable YMKMasstransitTravelEstimation *)estimation
                                                                        stops:(nonnull NSArray<YMKMasstransitTransportStop *> *)stops
                                                                     geometry:(nonnull YMKPolyline *)geometry;

Properties

@property (nonatomic, readonly, nonnull) YMKMasstransitThread *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<YMKMasstransitTransportThreadAlert *> *alerts;

Collection of important annotations for the section

@property (nonatomic, readonly, nullable)
    YMKMasstransitStop *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)
    YMKMasstransitBoardingOptions *boardingOptions;

Recommended underground boarding options for this section

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

Time estimation for transport thread

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

Collection of stops for the section

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

Class methods

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

+ (nonnull YMKMasstransitTransportTransportThread *)transportThreadWithThread:(nonnull YMKMasstransitThread *)thread
                                                                isRecommended:( BOOL)isRecommended
                                                                       alerts:(nonnull NSArray<YMKMasstransitTransportThreadAlert *> *)alerts
                                                       alternateDepartureStop:(nullable YMKMasstransitStop *)alternateDepartureStop
                                                              boardingOptions:(nullable YMKMasstransitBoardingOptions *)boardingOptions
                                                                   estimation:(nullable YMKMasstransitTravelEstimation *)estimation
                                                                        stops:(nonnull NSArray<YMKMasstransitTransportStop *> *)stops
                                                                     geometry:(nonnull YMKPolyline *)geometry;


Properties

thread

@property (nonatomic, readonly, nonnull) YMKMasstransitThread *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<YMKMasstransitTransportThreadAlert *> *alerts;

Collection of important annotations for the section.


alternateDepartureStop

@property (nonatomic, readonly, nullable)
    YMKMasstransitStop *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)
    YMKMasstransitBoardingOptions *boardingOptions;

Recommended underground boarding options for this section.

Optional field, can be nil.


estimation

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

Time estimation for transport thread.

Optional field, can be nil.


stops

@property (nonatomic, readonly, nonnull)
    NSArray<YMKMasstransitTransportStop *> *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) YMKPolyline *geometry;

Transport thread geometry.