Важно

This feature is available in the Full MapKit SDK version

YMKMasstransitTransportTransportThread

class YMKMasstransitTransportTransportThread : NSObject

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

Summary

Class methods

 init(thread: YMKMasstransitThread,
 isRecommended: Bool,
      alerts: [YMKMasstransitTransportThreadAlert],
 alternateDepartureStop: YMKMasstransitStop?,
 boardingOptions: YMKMasstransitBoardingOptions?)

Properties

var threadYMKMasstransitThread { get }
Mass transit thread

var isRecommended: Bool { get }
Indicates that the mass transit router considers this thread the best one for the current section of the constucted route

var alerts: [YMKMasstransitTransportThreadAlert] { get }
Collection of important annotations for the section

var alternateDepartureStopYMKMasstransitStop? { get }
If alternateDepartureStop is specified, it specifies the departure location for this particular Thread instead of the first Stop of the Section

var boardingOptionsYMKMasstransitBoardingOptions? { get }
Recommended underground boarding options for this section

Class methods

init(thread:isRecommended:alerts:alternateDepartureStop:boardingOptions:)

 init(thread: YMKMasstransitThread,
 isRecommended: Bool,
      alerts: [YMKMasstransitTransportThreadAlert],
 alternateDepartureStop: YMKMasstransitStop?,
 boardingOptions: YMKMasstransitBoardingOptions?)


Properties

thread

var thread: YMKMasstransitThread { get }

Mass transit thread.


isRecommended

var isRecommended: Bool { get }

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


alerts

var alerts: [YMKMasstransitTransportThreadAlert] { get }

Collection of important annotations for the section.


alternateDepartureStop

var alternateDepartureStop: YMKMasstransitStop? { get }

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

var boardingOptions: YMKMasstransitBoardingOptions? { get }

Recommended underground boarding options for this section.

Optional field, can be nil.