@Beta(2020, 12) class Builder
Builder used to create an instance of RouteSpecification. Once constructed, the user cannot change the field values.
origin
- A location of the origin defined as a latitude longitude pair.
destination
- A location of the destination defined as a latitude longitude pair.
Builder(origin: LatLng, destination: LatLng)
Builder used to create an instance of RouteSpecification. Once constructed, the user cannot change the field values. |
fun build(): RouteSpecification
Constructs a new RouteSpecification. |
|
fun combustionVehicleDescriptor(combustionVehicleDescriptor: CombustionVehicleDescriptor): RouteSpecification.Builder
Specifies parameters for the combustion vehicle. |
|
fun electricVehicleDescriptor(electricVehicleDescriptor: ElectricVehicleDescriptor): RouteSpecification.Builder
Specifies parameters for the electric vehicle. |
|
fun routeCalculationDescriptor(routeCalculationDescriptor: RouteCalculationDescriptor): RouteSpecification.Builder
Specifies parameters related to the route calculation. |