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 |
Properties
@property (nonatomic, readonly, nonnull) MMKMasstransitWeight *weight; |
@property (nonatomic, readonly, nonnull) |
@property (nonatomic, readonly, nullable) |
@property (nonatomic, readonly) NSUInteger legIndex; |
Class methods
sectionMetadataWithWeight:data:estimation:legIndex:
+ (nonnull MMKMasstransitSectionMetadata *)sectionMetadataWithWeight:(nonnull MMKMasstransitWeight *)weight |
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) |
Contains information that is specific to a section type: wait, walk, transfer, or ride transport.
estimation
@property (nonatomic, readonly, nullable) |
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.