IARouteLeg
Objective-C
@interface IARouteLeg : NSObject
Swift
class IARouteLeg : NSObject
Object representing the line segment between two IARoutePoint
objects.
Includes the distance and direction of the segment as well as the start and end points.
-
The
IARoutePoint
representing the beginning of this leg.Declaration
Objective-C
@property (nonatomic, readonly, nonnull) IARoutePoint *begin;
Swift
var begin: IARoutePoint { get }
-
The
IARoutePoint
representing the end of this leg.Declaration
Objective-C
@property (nonatomic, readonly, nonnull) IARoutePoint *end;
Swift
var end: IARoutePoint { get }
-
Length of the line segment in meters.
Declaration
Objective-C
@property (nonatomic, readonly) double length;
Swift
var length: Double { get }
-
Direction of the line segment in ENU coordinates in degrees. 0 is North and 90 is East.
Declaration
Objective-C
@property (nonatomic, readonly) double direction;
Swift
var direction: Double { get }
-
Zero-based index of the edge corresponding to this leg in the original JSON graph. If this is a virtual leg, for example, a segment connecting an off-graph starting point to the graph, edgeIndex will be -1.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger edgeIndex;
Swift
var edgeIndex: Int { get }