TomTomGuidanceEngine
public class TomTomGuidanceEngine : GuidanceEngine
TomTomGuidanceEngine generates guidance related to the current guidance step.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializer.
- announcementGenerators:List of announcement generators used to generate announcements at the current position on the route.
- appendInstructionDistanceThreshold:Distance threshold to be taken into account when creating the next instruction list.
Declaration
Swift
public convenience init( announcementGenerators: [AnnouncementGenerator] = defaultAnnouncementGenerators, appendInstructionDistanceThreshold: Double = defaultAppendInstructionDistanceThreshold )
-
Default distance threshold to be taken into account when creating a next instruction list.
Declaration
Swift
public static let defaultAppendInstructionDistanceThreshold: Double -
Default announcements generators
Declaration
Swift
public static let defaultAnnouncementGenerators: [AnnouncementGenerator] -
The language to be used by GuidanceEngine
Declaration
Swift
public var language: String? { get set } -
Declaration
Swift
public var announcementsEnabled: Bool { get set } -
Declaration
Swift
public var announcementMode: AnnouncementMode { get set } -
Declaration
Swift
public func generateGuidance(navigationSnapshot: NavigationSnapshot) throws -> Guidance -
Declaration
Swift
public func generateLaneGuidance(navigationSnapshot: NavigationSnapshot) -> LaneGuidanceInfo? -
Declaration
Swift
public func reset()
TomTomGuidanceEngine Class Reference