addViaPoint

fun addViaPoint(    geoCoordinates: GeoCoordinates,     customName: String? = null,     index: Int = -1)

Adds a GeoCoordinates as a via point to the route request.

Parameters

geoCoordinates

coordinates that will be added as a via point to the route request

customName

custom name for the via point

index

position where the via point will be inserted (negative value means that the via point will be inserted at the end)


fun addViaPoint(viaPoint: Waypoint, index: Int = -1)

Adds a via point to the route request.

Parameters

viaPoint

via point to add to request

index

position where the via point will be inserted (negative value means that the via point will be inserted at the end)