Warning

This feature is available in the Full MapKit SDK version

YMKMasstransitThread

@interface YMKMasstransitThread : NSObject <YMKBaseMetadata>

Describes a public transport thread. A thread is one of the YMKMasstransitLine variants. For example, one line can have two threads: direct and return.

Summary

Class methods

+ (nonnull YMKMasstransitThread *)threadWithId:(nonnull NSString *)id
                                essentialStops:(nonnull NSArray<YMKMasstransitStop *> *)essentialStops
                                   description:(nullable NSString *)description;

Properties

@property (nonatomic, readonly, nonnull) NSString *id;
Thread ID

@property (nonatomic, readonly, nonnull)
    NSArray<YMKMasstransitStop *> *essentialStops;

List of important stops on the thread, such as the first and last stops

@property (nonatomic, readonly, nullable) NSString *description;
'Description' is a specific thread name which must be used in addition to the corresponding YMKMasstransitLine name

Class methods

threadWithId:essentialStops:description:

+ (nonnull YMKMasstransitThread *)threadWithId:(nonnull NSString *)id
                                essentialStops:(nonnull NSArray<YMKMasstransitStop *> *)essentialStops
                                   description:(nullable NSString *)description;


Properties

id

@property (nonatomic, readonly, nonnull) NSString *id;

Thread ID.


essentialStops

@property (nonatomic, readonly, nonnull)
    NSArray<YMKMasstransitStop *> *essentialStops;

List of important stops on the thread, such as the first and last stops.


description

@property (nonatomic, readonly, nullable) NSString *description;

'Description' is a specific thread name which must be used in addition to the corresponding YMKMasstransitLine name.

For example, line "bus 34" has two thread with descriptions: "short" and "long". To get full thread name you should combine line name and thread description. After this, you get two threads name: "bus 34 short" and "bus 34 long".

Optional field, can be nil.