MPIAction

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

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

Constructors

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

Functions

component1
Link copied to clipboard
operator fun component1(): MPIActionType?
component2
Link copied to clipboard
operator fun component2(): MPIBearingType?
component3
Link copied to clipboard
operator fun component3(): String?
component4
Link copied to clipboard
operator fun component4(): MPIMap?
component5
Link copied to clipboard
operator fun component5(): MPIMap?
copy
Link copied to clipboard
fun copy(type: MPIActionType?, bearing: MPIBearingType? = null, referencePosition: String? = null, fromMap: MPIMap? = null, toMap: MPIMap? = null): MPIDirections.MPIAction
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

bearing
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.
fromMap
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.
referencePosition
Link copied to clipboard
val referencePosition: String? = null
referencePosition has no use cases for now.
toMap
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.
type
Link copied to clipboard
val type: MPIActionType?
An optional type of the MPIAction