getDistance

abstract fun getDistance(    to: MPINavigatable,     from: MPINavigatable,     accessible: Boolean = false,     distanceCallback: (Float?) -> Unit)

Get the distance in meters between a MPINavigatable (MPINavigatable.MPINode, MPINavigatable.MPILocation, MPINavigatable.MPIPolygon) and MPINavigatable

Return

Unit

Parameters

to

The MPINavigatable where the distant measurement will begin

from

The starting MPINavigatable where the distant measurement will end

accessible

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

directionsCallback

The callback that contains the distance in meters as a Float


abstract suspend fun getDistance(    to: MPINavigatable,     from: MPINavigatable,     accessible: Boolean = false): Float

Get the distance in meters between a MPINavigatable (MPINavigatable.MPINode, MPINavigatable.MPILocation, MPINavigatable.MPIPolygon) and MPINavigatable

Parameters

to

The MPINavigatable where the distant measurement will begin

from

The starting MPINavigatable where the distant measurement will end

accessible

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

directionsCallback

The callback that contains the distance in meters as a Float