Route

data class Route(val method: Int = 0, val direction: Int = 0, val prefix: String = "", val strokeWeightX10: Int = 0, val links: List<TakPacketV2Data.Payload.Route.Link> = emptyList(), val truncated: Boolean = false) : TakPacketV2Data.Payload(source)

Named route consisting of ordered waypoints and control points. Maps to Route at payload_variant tag 37.

Link count is capped at MAX_ROUTE_LINKS (16) by the parser; longer routes are truncated with truncated set true.

Constructors

Link copied to clipboard
constructor(method: Int = 0, direction: Int = 0, prefix: String = "", strokeWeightX10: Int = 0, links: List<TakPacketV2Data.Payload.Route.Link> = emptyList(), truncated: Boolean = false)

Types

Link copied to clipboard
data class Link(val latI: Int = 0, val lonI: Int = 0, val uid: String = "", val callsign: String = "", val linkType: Int = 0)

One route waypoint or control point.

Properties

Link copied to clipboard

Direction: 0 unspec, 1 Infil, 2 Exfil.

Link copied to clipboard

Ordered route waypoints / control points (capped at MAX_ROUTE_LINKS).

Link copied to clipboard
val method: Int

Travel method: 0 unspec, 1 Driving, 2 Walking, 3 Flying, 4 Swimming, 5 Watercraft.

Link copied to clipboard

Waypoint-label prefix (e.g. "CP" → CP1, CP2, …).

Link copied to clipboard

Route line weight × 10 (e.g. 3.0 px → 30).

Link copied to clipboard

True if links were dropped because the route exceeded MAX_ROUTE_LINKS.