getClosestSegment

external fun getClosestSegment(coordinates: Coordinates): Int

Get index of the closest route segment to the given coordinates

Return

-1 if route is invalid