KNSafetyZone
INFO
This English reference is based on Directions SDK 1.12.8-hotfix02. For the latest version, see the Korean reference.
Checks whether school zones, elderly protection zones, or disabled protection zones are included.
TIP
Currently, only school zone settings are supported.
Example code — KNSafetyZone
kotlin
data class KNSafetyZoneConstructor
Example code — Initialization
kotlin
// <init>
KNSafetyZone(linkIdx: Int, fromLocation: KNLocation, toLocation: KNLocation, safetyZoneType: KNSafetyZoneType)Properties
| Name | Description | Type |
|---|---|---|
fromLocation | Location information of the section start point | var fromLocation: KNLocation |
toLocation | Location information of the section end point | var toLocation: KNLocation |
safetyZoneType | Protected zone type | var safetyZoneType: KNSafetyZoneType |