KNGPSData
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.
A geographic location data class used in the KNSDK.
Example code — KNGPSData
kotlin
KNGPSData()
KNGPSData(parcel: Parcel)
KNGPSData(aGpsData: KNGPSData)
KNGPSData(aLocation: Location)
KNGPSData(aGpsDic: JSONObject)
KNGPSData(aData: ByteArray)Properties
| Name | Description | Type |
|---|---|---|
valid | Whether the data is valid | var valid: Boolean |
pos | KATEC coordinate position | var pos: FloatPoint |
speed | Speed (unit: km/h) | var speed: Int |
angle | Direction (range: 0–360) | var angle: Int |
altitude | Altitude | var altitude: Int |
hdop | Horizontal positional accuracy | var hdop: Int |
vdop | Vertical positional accuracy | var vdop: Int |
timestamp | Time the location data was received | var timestamp: Calendar |
posTrust | Whether the position is trusted | var posTrust: Boolean |
speedTrust | Whether the speed is trusted | var speedTrust: Boolean |
angleTrust | Whether the direction is trusted | var angleTrust: Boolean |
useFin | Whether the coordinates were obtained from LTE positioning | var useFin: Boolean |