getDistance

open fun getDistance(position: Positionable): Int

Gets the path distance to the specified position

Return

the distance to the specified position, or MAX_VALUE if not reachable

Parameters

position

the position