KNSafety_Caution
INFO
This English reference is based on Directions SDK with UI 1.12.8-hotfix02 (as of 2026-07-24). For the latest version, see the Korean reference.
Provides information such as caution signs and speed bumps that can be checked in safe driving mode.
Example code — KNSafety_Caution
kotlin
class KNSafety_Caution : KNSafetyConstructor
Example code — Initialization
kotlin
// <init>
KNSafety_Caution(location: KNLocation, code: KNSafetyCode, limit: Int)Properties
| Name | Description | Type |
|---|---|---|
location | Current location along the route | var location: KNLocation |
code | Safe driving data code | var code: KNSafetyCode |
limit | Limit value according to KNSafetyCode . The limit value varies depending on KNSafetyCode : it is displayed in cm when the code is a height limit, and in units of 0.1t when it is a weight limit. For codes unrelated to the above limits, 0 is returned. | var limit: Int |
Methods
safetyType
An overridden function that returns KNSafetyType.KNSafetyType_Caution.
kotlin
fun safetyType(): KNSafetyType