sdk-routing / com.tomtom.online.sdk.routing.matrix / MatrixRoutesSpecification / Builder

Builder

@Beta(2020, 12) class Builder

Builder used to create an instance of MatrixRoutesSpecification. Once constructed, the user cannot change the field values.

Parameters

origins - A list of origin locations used to calculate matrix routes.

destinations - A list of destination locations used to calculate matrix routes.

Constructors

<init>

Builder(origins: List<LatLng>, destinations: List<LatLng>)

Builder used to create an instance of MatrixRoutesSpecification. Once constructed, the user cannot change the field values.

Functions

build

fun build(): MatrixRoutesSpecification

Constructs a new MatrixRoutesSpecification.

combustionVehicleDescriptor

fun combustionVehicleDescriptor(combustionVehicleDescriptor: CombustionVehicleDescriptor): MatrixRoutesSpecification.Builder

Specifies parameters for the combustion vehicle.

electricVehicleDescriptor

fun electricVehicleDescriptor(electricVehicleDescriptor: ElectricVehicleDescriptor): MatrixRoutesSpecification.Builder

Specifies parameters for the electric vehicle.

routeDescriptor

fun routeDescriptor(routeDescriptor: RouteDescriptor): MatrixRoutesSpecification.Builder

Specifies parameters related to the route itself.