VMMSMapDirectionStep
Objective-C
@interface VMMSMapDirectionStep : NSObject
Swift
class VMMSMapDirectionStep : NSObject
Model that represents a particular leg or step in a waypath.
Since
1.0-
Create a new VMMSMapDirection with a default direction indicator of kDirectionStraight
Declaration
Objective-C
- (nonnull instancetype)initWithInstructions:(nonnull NSString *)instructions andWaypathSegment: (nonnull VMMSWaypathSegment *)segment;
Swift
init(instructions: String, andWaypathSegment segment: VMMSWaypathSegment)
Parameters
instructions
the text that descripts this segment of the path
segment
the VMMSWaypathSegment that this step represents
Return Value
a new instance
-
Create a new VMMSMapDirection instance
Declaration
Objective-C
- (nonnull instancetype)initWithInstructions:(nonnull NSString *)instructions andWaypathSegment: (nonnull VMMSWaypathSegment *)segment andDirectionIndicator:(id)indicator;
Swift
init(instructions: String, andWaypathSegment segment: VMMSWaypathSegment, andDirectionIndicator indicator: Any!)
Parameters
instructions
the text that descripts this segment of the path
segment
the VMMSWaypathSegment that this step represents
indicator
the direction indicated by this step
Return Value
a new instance
-
The direction indicated by this step
Declaration
Objective-C
@property (nonatomic) int directionIcon;
Swift
var directionIcon: Int32 { get set }
-
The text that descripts this segment of the path
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nonnull instructions;
Swift
var instructions: String { get set }
-
The VMMSWaypathSegment that this steps represents
Declaration
Objective-C
@property (nonatomic, strong) VMMSWaypathSegment *_Nonnull segment;
Swift
var segment: VMMSWaypathSegment { get set }
-
A string representation of the length of this step, with the ‘ft’ appended
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull distance;
Swift
var distance: String { get }
-
The length represented by this step, in FEET
Declaration
Objective-C
@property (nonatomic, readonly) int distanceRaw;
Swift
var distanceRaw: Int32 { get }