sdk-routing / com.tomtom.online.sdk.routing.reachablerange / ReachableRangeSpecification / Builder

Builder

@PublicPreview("2021.06") class Builder

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

Constructors

<init>

Builder(origin: LatLng)

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

Functions

build

fun build(): ReachableRangeSpecification

Constructs a new ReachableRangeSpecification.

combustionVehicleDescriptor

fun combustionVehicleDescriptor(combustionVehicleDescriptor: CombustionVehicleDescriptor): ReachableRangeSpecification.Builder

Specifies parameters for the combustion vehicle.

electricVehicleDescriptor

fun electricVehicleDescriptor(electricVehicleDescriptor: ElectricVehicleDescriptor): ReachableRangeSpecification.Builder

Specifies parameters for the electric vehicle.

reachableRangeBudgetDescriptor

fun reachableRangeBudgetDescriptor(reachableRangeBudgetDescriptor: ReachableRangeBudgetDescriptor): ReachableRangeSpecification.Builder

Specifies the reachable range budget.

routeDescriptor

fun routeDescriptor(routeDescriptor: RouteDescriptor): ReachableRangeSpecification.Builder

Specifies parameters related to the route itself.