Class YMKMasstransitSectionMetadata

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.

Class Methods

Properties

data

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

estimation

Arrival and departure time estimations.

legIndex

Part of the route polyline for the route leg.

weight

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

Method Detail

+sectionMetadataWithWeight:data:estimation:legIndex:

+ (nonnull YMKMasstransitSectionMetadata *)sectionMetadataWithWeight:(nonnull YMKMasstransitWeight *)weight
                                                                data:(nonnull YMKMasstransitSectionMetadataSectionData *)data
                                                          estimation:(nullable YMKMasstransitTravelEstimation *)estimation
                                                            legIndex:(NSUInteger)legIndex 

Property Detail

data

(assign, readonly) YMKMasstransitSectionMetadataSectionData * data

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

estimation

(assign, readonly) YMKMasstransitTravelEstimation * estimation

Arrival and departure time estimations.

This field is set only for time-dependent routes.

Optional property, can be null.

legIndex

(assign, readonly) NSUInteger legIndex

Part of the route polyline for the route leg.

A leg is a part of the route between two consecutive waypoints.

weight

(assign, readonly) YMKMasstransitWeight * weight

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