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.

Return

RouteOptions.Builder

Parameters

<receiver>

RouteOptions.Builder

origin

Point

waypoints

List<Point?>?

destination

Point