A navigation instruction.
Convenience init for required parameters
- (nonnull instancetype)
initWithLocationDetails:(nonnull SDLLocationDetails *)locationDetails
action:(nonnull SDLNavigationAction)action;
init(locationDetails: SDLLocationDetails, action: SDLNavigationAction)
The location details
The navigation action
A SDLNavigationInstruction object
Convenience init for all parameters.
- (nonnull instancetype)
initWithLocationDetails:(nonnull SDLLocationDetails *)locationDetails
action:(nonnull SDLNavigationAction)action
eta:(nullable SDLDateTime *)eta
bearing:(UInt16)bearing
junctionType:(nullable SDLNavigationJunction)junctionType
drivingSide:(nullable SDLDirection)drivingSide
details:(nullable NSString *)details
image:(nullable SDLImage *)image;
convenience init(locationDetails: SDLLocationDetails, action: SDLNavigationAction, eta: SDLDateTime?, bearing: UInt16, junctionType: SDLNavigationJunction?, drivingSide: SDLDirection?, details: String?, image: SDLImage?)
The location details
The navigation action
The estimated time of arrival
The angle at which this instruction takes place
The navigation junction type
Used to infer which side of the road this instruction takes place
This is a string representation of this instruction, used to display instructions to the users
An image representation of this instruction
A SDLNavigationInstruction object
The location details.
SDLLocationDetails, Required
@property (nonatomic, strong) SDLLocationDetails *_Nonnull locationDetails;
var locationDetails: SDLLocationDetails { get set }
The navigation action.
SDLNavigationAction, Required
@property (nonatomic, strong) SDLNavigationAction _Nonnull action;
var action: SDLNavigationAction { get set }
The estimated time of arrival.
SDLDateTime, Optional
@property (nonatomic, strong, nullable) SDLDateTime *eta;
var eta: SDLDateTime? { get set }
The angle at which this instruction takes place. For example, 0 would mean straight, <=45 is bearing right, >= 135 is sharp right, between 45 and 135 is a regular right, and 180 is a U-Turn, etc.
Integer, Optional, minValue=“0” maxValue=“359”
@property (nonatomic, strong, nullable) NSNumber<SDLInt> *bearing;
var bearing: (NSNumber & SDLInt)? { get set }
The navigation junction type.
SDLNavigationJunction, Optional
@property (nonatomic, strong, nullable) SDLNavigationJunction junctionType;
var junctionType: SDLNavigationJunction? { get set }
Used to infer which side of the road this instruction takes place. For a U-Turn (action=TURN, bearing=180) this will determine which direction the turn should take place.
SDLDirection, Optional
@property (nonatomic, strong, nullable) SDLDirection drivingSide;
var drivingSide: SDLDirection? { get set }
This is a string representation of this instruction, used to display instructions to the users. This is not intended to be read aloud to the users, see the param prompt in NavigationServiceData
for that.
String, Optional
@property (nonatomic, strong, nullable) NSString *details;
var details: String? { get set }
An image representation of this instruction.
SDLImage, Optional
@property (nonatomic, strong, nullable) SDLImage *image;
var image: SDLImage? { get set }