coordinates

fun RouteOptions.Builder.coordinates(    origin: Point,     waypoints: List<Point>? = null,     destination: Point): RouteOptions.Builder

Takes a list of Points and correctly adds them as waypoints in the correct order.

Receiver

RouteOptions.Builder

Return

RouteOptions.Builder

Parameters

origin

Point

waypoints

List?

destination

Point