MMKPolylinePosition

@interface MMKPolylinePosition : NSObject

The position on a polyline.

Summary

Class methods

+ (nonnull MMKPolylinePosition *)polylinePositionWithSegmentIndex:( NSUInteger)segmentIndex
                                                  segmentPosition:( double)segmentPosition;

Properties

@property (nonatomic, readonly) NSUInteger segmentIndex;
Zero-based index of the polyline segment

@property (nonatomic, readonly) double segmentPosition;
Position in the specified segment

Class methods

polylinePositionWithSegmentIndex:segmentPosition:

+ (nonnull MMKPolylinePosition *)polylinePositionWithSegmentIndex:( NSUInteger)segmentIndex
                                                  segmentPosition:( double)segmentPosition;


Properties

segmentIndex

@property (nonatomic, readonly) NSUInteger segmentIndex;

Zero-based index of the polyline segment.


segmentPosition

@property (nonatomic, readonly) double segmentPosition;

Position in the specified segment. Possible values: from 0 to 1, where 0 is the start of the segment and 1 is the end of it.