sdk-routing / com.tomtom.online.sdk.data.reachablerange / ReachableRangeParams

ReachableRangeParams

interface ReachableRangeParams : JniNativeHandleOwner

An interface used to specify key parameters for reachable range such as an energy and fuel budget. Extends the native class to access the native object's unique id and native handle. Implemented in the default reachable range params builder ReachableRangeParamsBuilder.

Functions

withDistanceBudgetInMeters

abstract fun withDistanceBudgetInMeters(distanceBudgetInMeters: Double!): ReachableRangeParams!

The distance budget in meters that determines the maximal range which can be traveled. The Consumption Model will only affect the range when the routeType is eco.

withEnergyBudgetInKWh

abstract fun withEnergyBudgetInKWh(energyBudgetInKWh: Double!): ReachableRangeParams!

Electric energy budget in kilowatt hours (kWh) that determines the maximum range that can be traveled using the specified Electric Consumption Model. Required only for vehicles with an electric engine if it #withTimeBudgetInSeconds(Double) is not used.

withFuelBudgetInLiters

abstract fun withFuelBudgetInLiters(fuelBudgetInLiters: Double!): ReachableRangeParams!

Fuel budget in liters that determines the maximum range that can be traveled using the specified Combustion Consumption Model. Required only for vehicles with a combustion engine if #withTimeBudgetInSeconds(Double) is not used.

withTimeBudgetInSeconds

abstract fun withTimeBudgetInSeconds(timeBudgetInSeconds: Double!): ReachableRangeParams!

Time budget in seconds that determines the maximum range that can be traveled within a given time. The consumption parameters will only affect eco-routes and thereby indirectly affect the driving time. Required only if neither #withFuelBudgetInLiters(Double) nor #withEnergyBudgetInKWh(Double) are called.

Inheritors

ReachableRangeParamsBuilder

open class ReachableRangeParamsBuilder : ReachableRangeParams

A class used for building parameters of a reachable range query using a native handle from the ReachableRangeParams interface.