MPIAction

data class MPIAction(    val type: MPIActionType?,     val bearing: MPIBearingType? = null,     val referencePosition: String? = null,     val fromMap: MPIMap? = null,     val toMap: MPIMap? = null)

This class represents the type of action to be taken in a specific MPIInstruction

Constructors

Link copied to clipboard
fun MPIAction(    type: MPIActionType?,     bearing: MPIBearingType? = null,     referencePosition: String? = null,     fromMap: MPIMap? = null,     toMap: MPIMap? = null)

Properties

Link copied to clipboard
val bearing: MPIBearingType? = null

If the type is MPIActionType.TURN, there is also a bearing type of the MPIAction; otherwise, bearing type is null.

Link copied to clipboard
val fromMap: MPIMap? = null

If the type of a MPIAction is MPIActionType.TAKEVORTEX or MPIActionType.EXITVORTEX, fromMap represents the MPIMap of departure; otherwise, fromMap is null.

Link copied to clipboard
val referencePosition: String? = null

referencePosition has no use cases for now.

Link copied to clipboard
val toMap: MPIMap? = null

If the type of a MPIActionis MPIActionType.TAKEVORTEX or MPIActionType.EXITVORTEX, toMap represents the MPIMap of destination; otherwise, toMap is null.

Link copied to clipboard
val type: MPIActionType?

An optional type of the MPIAction