setPoints
open fun setPoints(startPoint: RouteUiPoint, finishPoint: RouteUiPoint, intermediatePoints: List<RouteUiPoint> = emptyList(), mode: TransportMode? = null)
Sets the route points and optionally the transport mode.
This method initiates route calculation with the specified points. If mode is not provided, the first available transport mode from allowed transport types will be used.
Parameters
startPoint
Starting point of the route
finishPoint
Destination point of the route
intermediatePoints
Optional list of waypoints between start and finish
mode
Optional transport mode for route calculation