getDirections

abstract fun getDirections(    to: MPINavigatable,     from: MPINavigatable,     accessible: Boolean = true,     directionsCallback: (MPIDirections?) -> Unit)

Get directions to a MPINavigatable (MPINavigatable.MPINode, MPINavigatable.MPILocation, MPINavigatable.MPIPolygon) from another MPINavigatable

Return

Unit

Parameters

to

The destination MPINavigatable for the directions

from

The starting MPINavigatable for the directions

accessible

Whether or not the directions are accessible (uses connections that are accessible), defaults to true

directionsCallback

The callback that contains the MPIDirections


abstract fun getDirections(    to: MPIDestinationSet,     from: MPINavigatable,     accessible: Boolean = true,     directionsCallback: (List<MPIDirections>?) -> Unit)

Get directions to a MPIDestinationSet (MPINavigatable.MPINode, MPINavigatable.MPILocation, MPINavigatable.MPIPolygon) from another MPINavigatable

Return

Unit

Parameters

to

The multi destination list of MPINavigatables for the directions

from

The starting MPINavigatable for the directions

accessible

Whether or not the directions are accessible (uses connections that are accessible), defaults to true

directionsCallback

The callback that contains the MPIDirections