Warning

This feature is available in the Full MapKit SDK version

YMKDrivingSectionMetadata

@interface YMKDrivingSectionMetadata : NSObject

Information about section metadata.

Summary

Class methods

+ (nonnull YMKDrivingSectionMetadata *)sectionMetadataWithLegIndex:( NSUInteger)legIndex
                                                            weight:(nonnull YMKDrivingWeight *)weight
                                                        annotation:(nonnull YMKDrivingAnnotation *)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) YMKDrivingWeight *weight;
The "weight" of the section

@property (nonatomic, readonly, nonnull) YMKDrivingAnnotation *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 YMKDrivingSectionMetadata *)sectionMetadataWithLegIndex:( NSUInteger)legIndex
                                                            weight:(nonnull YMKDrivingWeight *)weight
                                                        annotation:(nonnull YMKDrivingAnnotation *)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) YMKDrivingWeight *weight;

The "weight" of the section.


annotation

@property (nonatomic, readonly, nonnull) YMKDrivingAnnotation *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.