getDistance

open override fun getDistance(    to: MPINavigatable,     from: MPINavigatable,     accessible: Boolean,     distanceToCallback: (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


open suspend override fun getDistance(    to: MPINavigatable,     from: MPINavigatable,     accessible: Boolean): Float

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

Return

the distance in meters as a Float

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