MPIDirections

data class MPIDirections(distance: Double, path: List<MPINavigatable.MPINode>, instructions: List<MPIDirections.MPIInstruction>)

MPIDirections contains paths and instructions to go from a MPINavigatable object to another MPINavigatable object

Constructors

MPIDirections
Link copied to clipboard
fun MPIDirections(distance: Double, path: List<MPINavigatable.MPINode>, instructions: List<MPIDirections.MPIInstruction>)

Types

MPIAction
Link copied to clipboard
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
MPIInstruction
Link copied to clipboard
data class MPIInstruction(action: MPIDirections.MPIAction?, instruction: String?, node: MPINavigatable.MPINode?, distance: Double?, atVortex: MPINavigatable.MPIVortex?)
This class represents a singular step or instruction of a MPIDirections

Functions

component1
Link copied to clipboard
operator fun component1(): Double
component2
Link copied to clipboard
operator fun component2(): List<MPINavigatable.MPINode>
component3
Link copied to clipboard
operator fun component3(): List<MPIDirections.MPIInstruction>
copy
Link copied to clipboard
fun copy(distance: Double, path: List<MPINavigatable.MPINode>, instructions: List<MPIDirections.MPIInstruction>): MPIDirections
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

distance
Link copied to clipboard
val distance: Double
instructions
Link copied to clipboard
val instructions: List<MPIDirections.MPIInstruction>
path
Link copied to clipboard
val path: List<MPINavigatable.MPINode>