Warning

This feature is available in the Full MapKit SDK version

MMKDrivingSectionMetadata

@interface MMKDrivingSectionMetadata : NSObject

Information about section metadata.

Summary

Class methods

+ (nonnull MMKDrivingSectionMetadata *)sectionMetadataWithLegIndex:( NSUInteger)legIndex
                                                            weight:(nonnull MMKDrivingWeight *)weight
                                                        annotation:(nonnull MMKDrivingAnnotation *)annotation
                                                 viaPointPositions:(nonnull NSArray<NSNumber *> *)viaPointPositions;

Properties

@property (nonatomic, readonly) NSUInteger legIndex;
A leg is a section of the route between two consecutive waypoints

@property (nonatomic, readonly, nonnull) MMKDrivingWeight *weight;
The "weight" of the section

@property (nonatomic, readonly, nonnull) MMKDrivingAnnotation *annotation;
Section annotation

@property (nonatomic, readonly, nonnull) NSArray<NSNumber *> *viaPointPositions;
Via points (throughpoints) can appear only at nodes of the section's geometry

Class methods

sectionMetadataWithLegIndex:weight:annotation:viaPointPositions:

+ (nonnull MMKDrivingSectionMetadata *)sectionMetadataWithLegIndex:( NSUInteger)legIndex
                                                            weight:(nonnull MMKDrivingWeight *)weight
                                                        annotation:(nonnull MMKDrivingAnnotation *)annotation
                                                 viaPointPositions:(nonnull NSArray<NSNumber *> *)viaPointPositions;


Properties

legIndex

@property (nonatomic, readonly) NSUInteger legIndex;

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


weight

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

The "weight" of the section.


annotation

@property (nonatomic, readonly, nonnull) MMKDrivingAnnotation *annotation;

Section annotation.


viaPointPositions

@property (nonatomic, readonly, nonnull) NSArray<NSNumber *> *viaPointPositions;

Via points (throughpoints) can appear only at nodes of the section's geometry. The vector contains the positions of all corresponding nodes. These positions should be listed in ascending order.