Class YMKMasstransitSectionMetadata

General information about a section of a route.

The field YMKMasstransitSectionMetadata::data 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
weight

Contains the route 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

weight

(assign, readonly) YMKMasstransitWeight * weight

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