KNRoadEvent
INFO
This English reference is based on Directions SDK 1.12.8-hotfix02. For the latest version, see the Korean reference.
Provides traffic incident information — road passage restriction information due to traffic accidents, construction, and similar events (traffic incident information).
Example code — KNRoadEvent
kotlin
class KNRoadEventConstructor
Example code — Initialization
kotlin
// <init>
KNRoadEvent(location: KNLocation, roadEventInfo: KNRoute_RoadEventInfo, icon: Bitmap?)Properties
| Name | Description | Type |
|---|---|---|
location | Location of the traffic incident information along the route | val location: KNLocation |
icon | Displays the traffic incident information icon | val icon: Bitmap? |
code | Traffic incident information code (0: accident, 1: construction, 2: event, 3: control) | val code: Int |
title | Name of the traffic incident information | val title: String |
pos | Actual position of the information | val pos: IntPoint |
startTime | Start date and time of the traffic incident information | val startTime: Calendar |
endTime | End date and time of the traffic incident information | val endTime: Calendar |
desc | Detailed description of the traffic incident information | val desc: String |
type | Traffic incident type (0: no control, 1: fully controlled road, 2: partially controlled road) | val type: Int |