allowedPointClosestTo

open fun allowedPointClosestTo(position: P): P?

Retrieves (if available) the valid point closest to position, using the default options.


abstract fun allowedPointClosestTo(position: P, options: O): P?

Retrieves (if available) the valid point closest to position with the provided options. For instance, this method could be used to find the pedestrian-allowed road closer to a highway.