MPIInstruction

public struct MPIInstruction : Codable

MPIInstruction represents a singular step or instruction of an MPIDirection

  • An optional MPIAction being performed at an MPInode

    Declaration

    Swift

    public let action: MPIAction?
  • An optional string instruction to display to user

    • Example: “Take elevator up to Upper Level”

    Declaration

    Swift

    public let instruction: String?
  • An optional MPINode where instruction takes place at

    Declaration

    Swift

    public let node: MPINode?
  • An optional distance of MPIInstruction in meters

    • Example: 12.323179101508586

    Declaration

    Swift

    public let distance: Double?
  • An optional MPIVortex if the MPIInstruction involves movement between two MPIMaps

    • Example: elevator

    Declaration

    Swift

    public let atVortex: MPIVortex?