MMKMasstransitThread

Warning

This feature is available in the Full MapKit SDK version

class MMKMasstransitThread : NSObject, MMKBaseMetadata

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

Summary

Class methods

 init(id: String,
 essentialStops: [MMKMasstransitStop],
 description: String?,
 category: [NSNumber])

Properties

var id: String { get }
Thread ID

var essentialStops: [MMKMasstransitStop] { get }
List of important stops on the thread, such as the first and last stops

var description: String? { get }
'Description' is a specific thread name which must be used in addition to the corresponding MMKMasstransitLine name

var category: [NSNumber] { get }
List of categories describing important traits of the thread

Class methods

init(id:essentialStops:description:category:)

 init(id: String,
 essentialStops: [MMKMasstransitStop],
 description: String?,
 category: [NSNumber])


Properties

id

var id: String { get }

Thread ID.


essentialStops

var essentialStops: [MMKMasstransitStop] { get }

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


description

var description: String? { get }

'Description' is a specific thread name which must be used in addition to the corresponding MMKMasstransitLine 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.


category

var category: [NSNumber] { get }

List of categories describing important traits of the thread. For example, "primary", "secondary", "to_depot"