Warning

This feature is available in the Full MapKit SDK version

MMKMasstransitSectionMetadata

@interface 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

+ (nonnull MMKMasstransitSectionMetadata *)sectionMetadataWithWeight:(nonnull MMKMasstransitWeight *)weight
                                                                data:(nonnull MMKMasstransitSectionMetadataSectionData *)data
                                                          estimation:(nullable MMKMasstransitTravelEstimation *)estimation
                                                            legIndex:( NSUInteger)legIndex;

Properties

@property (nonatomic, readonly, nonnull) MMKMasstransitWeight *weight;
Contains the route traveling time, distance of the walking part, and the number of transfers

@property (nonatomic, readonly, nonnull)
    MMKMasstransitSectionMetadataSectionData *data;

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

@property (nonatomic, readonly, nullable)
    MMKMasstransitTravelEstimation *estimation;

Arrival and departure time estimations

@property (nonatomic, readonly) NSUInteger legIndex;
Part of the route polyline for the route leg

Class methods

sectionMetadataWithWeight:data:estimation:legIndex:

+ (nonnull MMKMasstransitSectionMetadata *)sectionMetadataWithWeight:(nonnull MMKMasstransitWeight *)weight
                                                                data:(nonnull MMKMasstransitSectionMetadataSectionData *)data
                                                          estimation:(nullable MMKMasstransitTravelEstimation *)estimation
                                                            legIndex:( NSUInteger)legIndex;


Properties

weight

@property (nonatomic, readonly, nonnull) MMKMasstransitWeight *weight;

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


data

@property (nonatomic, readonly, nonnull)
    MMKMasstransitSectionMetadataSectionData *data;

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


estimation

@property (nonatomic, readonly, nullable)
    MMKMasstransitTravelEstimation *estimation;

Arrival and departure time estimations. This field is set only for time-dependent routes.

Optional field, can be nil.


legIndex

@property (nonatomic, readonly) NSUInteger legIndex;

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