KNDriveGuidance
INFO
This English reference is based on Directions SDK with UI 1.12.12. For the latest version, see the Korean reference.
- Inherits from: KNGuidance : NSObject
- Declared in: KNDriveGuidance.h
Manages the route guidance feature and provides route information.
TIP
- This class must be created through
KNSDK. - Only one
KNDriveGuidanceinstance currently exists.
Example code — KNDriveGuidance
objc
KNSDK.sharedInstance.sharedGuidanceMethods
cancelRoute
Ends route guidance and switches to safe driving mode.
objc
- (void): cancelRoutechangeRoute
Changes the main route being driven to an alternative route. Ignored if there is no alternative route.
objc
- (void) changeRoutereRoute
Recalculates the route.
objc
- (void) reRoutereRouteWithPriority:avoidOptions
Recalculates the route by selecting the items to prioritize when choosing a route during route guidance and the sections to avoid in the route.
objc
- (void) reRouteWithPriority: (KNRoutePriority) aPriority
avoidOptions: (SInt32) aAvoidOptionsParameters
| Name | Description |
|---|---|
aPriority | Items to prioritize when choosing a route during route guidance |
aAvoidOptions | Sections to avoid in the route |
startWithoutTrip
Starts guidance in safe driving mode without setting a destination.
objc
- (void) startWithoutTrip