@PublicPreview("2021.06") class Builder
Builder used to create an instance of MatrixRoutesSpecification. Once constructed, the user cannot change the field values.
origins
- A list of origin locations used to calculate matrix routes.
destinations
- A list of destination locations used to calculate matrix routes.
Builder(origins: List<LatLng>, destinations: List<LatLng>)
Builder used to create an instance of MatrixRoutesSpecification. Once constructed, the user cannot change the field values. |
fun build(): MatrixRoutesSpecification
Constructs a new MatrixRoutesSpecification. |
|
fun combustionVehicleDescriptor(combustionVehicleDescriptor: CombustionVehicleDescriptor): MatrixRoutesSpecification.Builder
Specifies parameters for the combustion vehicle. |
|
fun electricVehicleDescriptor(electricVehicleDescriptor: ElectricVehicleDescriptor): MatrixRoutesSpecification.Builder
Specifies parameters for the electric vehicle. |
|
fun routeDescriptor(routeDescriptor: RouteDescriptor): MatrixRoutesSpecification.Builder
Specifies parameters related to the route itself. |