KNRouteConfiguration
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 the vehicle type and whether a Hi-pass device is installed, for accurate route guidance.
Example code — KNRouteConfiguration
kotlin
class KNRouteConfiguration : KNSerializableConstructor
Example code — Initialization
kotlin
// <init>
KNRouteConfiguration(carType: KNCarType = KNCarType.KNCarType_1, fuel: KNCarFuel = KNCarFuel.KNCarFuel_Gasoline, useHipass: Boolean = false, carWidth: Int = -1, carHeight: Int = -1, carLength: Int = -1, carWeight: Int = -1)Properties
| Name | Description | Type |
|---|---|---|
carType | Vehicle type (default: KNCarType_1 ) | var carType: KNCarType |
fuel | Vehicle fuel (default: KNCarFuel_Gasoline ) | var fuel: KNCarFuel |
usage | Vehicle usage (default: KNCarUsage_Default ) | var usage: KNCarUsage |
useHipass | Whether a Hi-pass device is installed. true : Hi-pass installed, false : Hi-pass not installed (default: false ) | var useHipass: Boolean |
carWidth | Overall width of the vehicle. If set to -1, it does not affect route guidance (unit: cm). | var carWitdh: Int |
carHeight | Overall height of the vehicle. If set to -1, it does not affect route guidance (unit: cm). | var carHeight: Int |
carLength | Overall length of the vehicle. If set to -1, it does not affect route guidance (unit: cm). | var carLength: Int |
carWeight | Weight of the vehicle. If set to -1, it does not affect route guidance (unit: 0.1t). | var carWeight: Int |
autonomousDrivingOption | Autonomous driving option settings | var autonomousDrivingOption: KNRouteConfiguration_AutonomousDrivingOption |