Warning
This feature is available in the Full MapKit SDK version
MMKMasstransitSectionMetadata
class MMKMasstransitSectionMetadata : NSObject |
General information about a section of a route. The MMKMasstransitSectionMetadata::data field describes the type of section: wait, walk, transfer, or transport, and related data. Related data can be set for walk and transfer sections. This data is a vector of construction types of corresponding geometry segments.
Summary
Class methods
init(weight: MMKMasstransitWeight, |
Properties
var weight: MMKMasstransitWeight { get } |
var data: MMKMasstransitSectionMetadataSectionData { get } |
var estimation: MMKMasstransitTravelEstimation? { get } |
var legIndex: UInt { get } |
Class methods
init(weight:data:estimation:legIndex:)
init(weight: MMKMasstransitWeight, |
Properties
weight
var weight: MMKMasstransitWeight { get } |
Contains the route traveling time, distance of the walking part, and the number of transfers.
data
var data: MMKMasstransitSectionMetadataSectionData { get } |
Contains information that is specific to a section type: wait, walk, transfer, or ride transport.
estimation
var estimation: MMKMasstransitTravelEstimation? { get } |
Arrival and departure time estimations. This field is set only for time-dependent routes.
Optional field, can be nil.
legIndex
var legIndex: UInt { get } |
Part of the route polyline for the route leg. A leg is a part of the route between two consecutive waypoints.