MMKMasstransitTransportTransportThread

Warning

This feature is available in the Full MapKit SDK version

class MMKMasstransitTransportTransportThread : NSObject

MMKMasstransitThread specific properties of a mass transit ride section of a MMKMasstransitRoute.

Summary

Class methods

 init(thread: MMKMasstransitThread,
 isRecommended: Bool,
      alerts: [MMKMasstransitTransportThreadAlert],
 alternateDepartureStop: MMKMasstransitStop?,
 boardingOptions: MMKMasstransitBoardingOptions?,
  estimation: MMKMasstransitTravelEstimation?,
       stops: [MMKMasstransitTransportStop],
    geometry: MMKPolyline)

Properties

var thread: MMKMasstransitThread { 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: [MMKMasstransitTransportThreadAlert] { get }
Collection of important annotations for the section

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

var boardingOptions: MMKMasstransitBoardingOptions? { get }
Recommended underground boarding options for this section

var estimation: MMKMasstransitTravelEstimation? { get }
Time estimation for transport thread

var stops: [MMKMasstransitTransportStop] { get }
Collection of stops for the section

var geometry: MMKPolyline { get }
Transport thread geometry

Class methods

init(thread:isRecommended:alerts:alternateDepartureStop:boardingOptions:estimation:stops:geometry:)

 init(thread: MMKMasstransitThread,
 isRecommended: Bool,
      alerts: [MMKMasstransitTransportThreadAlert],
 alternateDepartureStop: MMKMasstransitStop?,
 boardingOptions: MMKMasstransitBoardingOptions?,
  estimation: MMKMasstransitTravelEstimation?,
       stops: [MMKMasstransitTransportStop],
    geometry: MMKPolyline)


Properties

thread

var thread: MMKMasstransitThread { 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: [MMKMasstransitTransportThreadAlert] { get }

Collection of important annotations for the section.


alternateDepartureStop

var alternateDepartureStop: MMKMasstransitStop? { 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: MMKMasstransitBoardingOptions? { get }

Recommended underground boarding options for this section.

Optional field, can be nil.


estimation

var estimation: MMKMasstransitTravelEstimation? { get }

Time estimation for transport thread.

Optional field, can be nil.


stops

var stops: [MMKMasstransitTransportStop] { get }

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

var geometry: MMKPolyline { get }

Transport thread geometry.