KNRoadInfo
INFO
This English reference is based on Directions SDK 1.12.8-hotfix02. For the latest version, see the Korean reference.
Provides information about the start and end locations that divide a road into sections.
Example code — KNRoadInfo
kotlin
open class KNRoadInfoConstructor
Example code — Initialization
kotlin
// <init>
KNRoadInfo(name: String?, fromLocation: KNLocation, toLocation: KNLocation)Properties
| Name | Description | Type |
|---|---|---|
name | Name of the traffic information point | val name: String? |
fromLocation | Start location information | val fromLocation: KNLocation |
toLocation | End location information | val toLocation: KNLocation |
Methods
roadInfoType
Returns the attribute of the road information.
kotlin
fun roadInfoType(): KNRoadInfoType