KNMultiRouteInfo
INFO
This English reference is based on Directions SDK 1.12.8-hotfix02. For the latest version, see the Korean reference.
Provides alternative route information as well as comparison information between the main route and the alternative route.
Example code — KNMultiRouteInfo
kotlin
data class KNMultiRouteInfoConstructor
Example code — Initialization
kotlin
// <init>
KNMultiRouteInfo(linkIdx: Int, direction: KNDirection, fromLocation: KNLocation, toLocation: KNLocation, fromLocationForSecondaryRoute: KNLocation, toLocationForSecondaryRoute: KNLocation, mbr: MBR, distGap: Int, timeGap: Int, costGap: Int)Properties
| Name | Description | Type |
|---|---|---|
direction | Alternative route branch information. Provides the turn information at the point where the main route and the alternative route diverge (based on the alternative route). | val direction: KNDirection |
fromLocation | Alternative route branch start location information. The start location where the main route and the alternative route diverge (based on the main route position). | val fromLocation: KNLocation |
toLocaiton | Alternative route branch end location information. The end location where the main route and the alternative route diverge (based on the main route position). | val toLocaiton: KNLocation |
fromLocationForSecondaryRoute | Alternative route branch start information. The start location where the main route and the alternative route diverge (based on the alternative route position). | val fromLocationForSecondaryRoute: KNLocation |
toLocationForSecondaryRoute | Alternative route branch end location information. The end location where the main route and the alternative route diverge (based on the alternative route position). | val toLocationForSecondaryRoute: KNLocation |
mbr | Section area information. Includes both the main route and the alternative route (KATEC MBR). | mbr: MBR |
distGap | Distance difference of the alternative route compared to the main route | distGap: Int |
timeGap | Time difference of the alternative route compared to the main route | timeGap: Int |
costGap | Fee difference of the alternative route compared to the main route | costGap: Int |