KNRoadInfo_Road
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.
Divides sections based on the type of road located along the route.
Example code — KNRoadInfo_Road
kotlin
class KNRoadInfo_Road : KNRoadInfoConstructor
Example code — Initialization
kotlin
// <init>
KNRoadInfo_Road(name: String?, fromLocation: KNLocation, toLocation: KNLocation)Properties
| Name | Description | Type |
|---|---|---|
name | Road name | val name: String? |
fromLocation | Start location information | val fromLocation: KNLocation |
toLocation | End location information | val toLocation: KNLocation |
roadType | Road type | val roadType: KNRoadType |
Methods
roadInfoType
Returns the attribute of the road information.
kotlin
fun roadInfoType(): KNRoadInfoType