HereSDKRouteLeg

@interface HereSDKRouteLeg : NSObject

Part of the route between two consecutive waypoints

  • Polyline of the route leg

    Declaration

    Objective-C

    @property (readonly, nonatomic) HereSDKPolyline *polyline;

    Swift

    var polyline: HereSDKPolyline! { get }
  • Geometry points of the route leg

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSArray<HereSDKRoutePoint *> *points;

    Swift

    var points: [HereSDKRoutePoint]! { get }
  • Distance of the leg (in the units requested in HereSDKRouteRequest)

    Declaration

    Objective-C

    @property (readonly, nonatomic) float distance;

    Swift

    var distance: Float { get }
  • Estimated travel time for the leg, in seconds

    Declaration

    Objective-C

    @property (readonly, nonatomic) float travelTime;

    Swift

    var travelTime: Float { get }
  • Index of the first point of the leg in the route geometry

    Declaration

    Objective-C

    @property (readonly, nonatomic) uint32_t firstPointIndex;

    Swift

    var firstPointIndex: UInt32 { get }
  • Index of the last point of the leg in the route’s polyline

    Declaration

    Objective-C

    @property (readonly, nonatomic) uint32_t lastPointIndex;

    Swift

    var lastPointIndex: UInt32 { get }
  • Maneuvers (turns, exits, etc.) in a leg of the route

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSArray<HereSDKRouteManeuver *> *maneuvers;

    Swift

    var maneuvers: [HereSDKRouteManeuver]! { get }