MPIAction

public struct MPIAction : Codable

MPIActionrepresents the action to be performed in a specific MPIInstruction

  • An optional type of the MPIAction

    • Example: TakeVortex

    Declaration

    Swift

    public let type: MPIActionType?
  • If the type is Turn, there is also a bearing type of the MPIAction; otherwise, bearing type is nil.

    • Example: Left

    Declaration

    Swift

    public let bearing: MPIBearingType?
  • referencePosition has no use cases for now.

    Note

    referencePosition serves as a placeholder for instruction improvements.

    Declaration

    Swift

    public let referencePosition: String?
  • If the type of an MPIAction is TakeVortex or ExitVortex, fromMap represents theMPIMap of departure; otherwise, fromMap is nil.

    Declaration

    Swift

    public let fromMap: MPIMap?
  • If the type of an MPIActionis TakeVortex or ExitVortex, toMap represents the MPIMap of destination; otherwise, toMap is nil.

    Declaration

    Swift

    public let toMap: MPIMap?