KNSafety_Section
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 average section speed enforcement information that can be checked in safe driving mode.
Example code — KNSafety_Section
kotlin
class KNSafety_Section : KNSafety_CameraConstructor
Example code — Initialization
kotlin
KNSafety_Section(location: KNLocation, safety: KNSafety_Section)
KNSafety_Section(location: KNLocation, code: KNSafetyCode, speedLimit: Int, inDistFromS: Int)Properties
| Name | Description | Type |
|---|---|---|
location | Current location along the route | var location: KNLocation |
code | Safe driving data code | var code: KNSafetyCode |
speedLimit | Speed limit (unit: km/h) | var speedLimit: Int |
isVariableSpeedLimit | Whether a variable speed limit is in operation | var isVariableSpeedLimit: Boolean |
onViolation | Whether it is in a speed violation state | var onViolation: Boolean |
sectionAvrSpeed | Average section speed (unit: km/h) | var sectionAvrSpeed: Int |
remainTimeToCutline | Remaining time until the end of the section (unit: seconds) | var remainTimeToCutline: Int |
Methods
safetyType
An overridden function that returns KNSafetyType.KNSafetyType_Section.
kotlin
fun safetyType(): KNSafetyType