This data is related to what a navigation service would provide.
Convenience init for required parameters.
- (nonnull instancetype)initWithTimestamp:(nonnull SDLDateTime *)timestamp;
init(timestamp: SDLDateTime)
Timestamp of when the data was generated
A SDLNavigationServiceData object
Convenience init for all parameters.
- (nonnull instancetype)
initWithTimestamp:(nonnull SDLDateTime *)timestamp
origin:(nullable SDLLocationDetails *)origin
destination:(nullable SDLLocationDetails *)destination
destinationETA:(nullable SDLDateTime *)destinationETA
instructions:
(nullable NSArray<SDLNavigationInstruction *> *)
instructions
nextInstructionETA:(nullable SDLDateTime *)nextInstructionETA
nextInstructionDistance:(float)nextInstructionDistance
nextInstructionDistanceScale:(float)nextInstructionDistanceScale
prompt:(nullable NSString *)prompt;
convenience init(timestamp: SDLDateTime, origin: SDLLocationDetails?, destination: SDLLocationDetails?, destinationETA: SDLDateTime?, instructions: [SDLNavigationInstruction]?, nextInstructionETA: SDLDateTime?, nextInstructionDistance: Float, nextInstructionDistanceScale: Float, prompt: String?)
Timestamp of when the data was generated
The start location
The final destination location
The estimated time of arrival at the final destination location
Array ordered with all remaining instructions
The estimated time of arrival at the next destination
The distance to this instruction from current location
Distance till next maneuver (starting from) from previous maneuver
This is a prompt message that should be conveyed to the user through either display or voice (TTS)
A SDLNavigationServiceData object
This is the timestamp of when the data was generated. This is to ensure any time or distance given in the data can accurately be adjusted if necessary.
SDLDateTime, Required
@property (nonatomic, strong) SDLDateTime *_Nonnull timestamp;
var timestamp: SDLDateTime { get set }
The start location.
SDLLocationDetails, Optional
@property (nonatomic, strong, nullable) SDLLocationDetails *origin;
var origin: SDLLocationDetails? { get set }
The final destination location.
SDLLocationDetails, Optional
@property (nonatomic, strong, nullable) SDLLocationDetails *destination;
var destination: SDLLocationDetails? { get set }
The estimated time of arrival at the final destination location.
SDLDateTime, Optional
@property (nonatomic, strong, nullable) SDLDateTime *destinationETA;
var destinationETA: SDLDateTime? { get set }
This array should be ordered with all remaining instructions. The start of this array should always contain the next instruction.
Array of SDLNavigationInstruction, Optional
@property (nonatomic, strong, nullable) NSArray<SDLNavigationInstruction *> *instructions;
var instructions: [SDLNavigationInstruction]? { get set }
The estimated time of arrival at the next destination.
SDLDateTime, Optional
@property (nonatomic, strong, nullable) SDLDateTime *nextInstructionETA;
var nextInstructionETA: SDLDateTime? { get set }
The distance to this instruction from current location. This should only be updated ever .1 unit of distance. For more accuracy the consumer can use the GPS location of itself and the next instruction.
Float, Optional
@property (nonatomic, strong, nullable) NSNumber<SDLFloat> *nextInstructionDistance;
var nextInstructionDistance: (NSNumber & SDLFloat)? { get set }
Distance till next maneuver (starting from) from previous maneuver.
Float, Optional
@property (nonatomic, strong, nullable) NSNumber<SDLFloat> *nextInstructionDistanceScale;
var nextInstructionDistanceScale: (NSNumber & SDLFloat)? { get set }
This is a prompt message that should be conveyed to the user through either display or voice (TTS). This param will change often as it should represent the following: approaching instruction, post instruction, alerts that affect the current navigation session, etc.
String, Optional
@property (nonatomic, strong, nullable) NSString *prompt;
var prompt: String? { get set }