KNDirection
INFO
This English reference is based on Directions SDK 1.12.8-hotfix02. For the latest version, see the Korean reference.
Provides information such as the location of a turn section, route classification code, node name, and direction guidance.
Example code — KNDirection
kotlin
data class KNDirectionConstructor
Example code — Initialization
kotlin
// <init>
KNDirection(rgIdx: Int, location: KNLocation, rgCode: KNRGCode, nodeName: String?, directionNames: List<String>?)Properties
| Name | Description | Type |
|---|---|---|
location | Location of the turn section along the route | var location: KNLocation |
rgCode | Route classification code of the turn section | var rgCode: KNRGCode |
nodeName | Node name of the turn section | var nodeName: String? |
directionNames | Names of the directions to proceed when entering the turn section | val directionNames: List<String>? |
dirNameType | Direction name type | val dirNameType: KNDirNameType |
directionAng | Turn angle (degrees) | val directionAng: Int |
laneColor | Color of the road guidance line displayed during route guidance (RG) | val laneColor: KNRGLaneColor |
Methods
isSameToDirection
Determines whether two turn section information objects are identical.
kotlin
fun isSameToDirection( direction: KNDirection ): Boolean