MapKit Mobile SDK

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,
        data: MMKMasstransitSectionMetadataSectionData,
  estimation: MMKMasstransitTravelEstimation?,
    legIndex: UInt)

Properties

var weightMMKMasstransitWeight { get }
Contains the route traveling time, distance of the walking part, and the number of transfers

var dataMMKMasstransitSectionMetadataSectionData { get }
Contains information that is specific to a section type: wait, walk, transfer, or ride transport

var estimationMMKMasstransitTravelEstimation? { get }
Arrival and departure time estimations

var legIndex: UInt { get }
Part of the route polyline for the route leg

Class methods

init(weight:data:estimation:legIndex:)

 init(weight: MMKMasstransitWeight,
        data: MMKMasstransitSectionMetadataSectionData,
  estimation: MMKMasstransitTravelEstimation?,
    legIndex: UInt)


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.