getVisibleRouteInterval

external fun getVisibleRouteInterval(route: Route, clipRect: Rect?): Xy?

Get the clipped part of the given route as a xy( startDistance, endDistance)

Parameters

route

Target route

clipRect

Clipping rectangle in screen coordinates. If no clip rectangle is given, the whole screen is used