Важно

This feature is available in the Full MapKit SDK version

YMKMasstransitSectionMetadata

class YMKMasstransitSectionMetadata : NSObject

General information about a section of a route. The YMKMasstransitSectionMetadata::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: YMKMasstransitWeight,
        data: YMKMasstransitSectionMetadataSectionData,
  estimation: YMKMasstransitTravelEstimation?,
    legIndex: UInt)

Properties

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

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

var estimationYMKMasstransitTravelEstimation? { 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: YMKMasstransitWeight,
        data: YMKMasstransitSectionMetadataSectionData,
  estimation: YMKMasstransitTravelEstimation?,
    legIndex: UInt)


Properties

weight

var weight: YMKMasstransitWeight { get }

Contains the route traveling time, distance of the walking part, and the number of transfers.


data

var data: YMKMasstransitSectionMetadataSectionData { get }

Contains information that is specific to a section type: wait, walk, transfer, or ride transport.


estimation

var estimation: YMKMasstransitTravelEstimation? { 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.