sdk-routing / com.tomtom.online.sdk.data / SpeedToConsumptionMap

SpeedToConsumptionMap

open class SpeedToConsumptionMap

A speed to fuel/energy consumption map. Units and constraints are defined by the context in which this is used.

Constructors

<init>

SpeedToConsumptionMap()

A speed to fuel/energy consumption map. Units and constraints are defined by the context in which this is used.

Properties

speedToConsumptionPairs

val speedToConsumptionPairs: MutableMap<Int!, Double!>!

A map which contains pairs of speed-consumption values. Filled with values in #create(Map).

Functions

addSpeedToConsumptionValue

open fun addSpeedToConsumptionValue(speed: Int, consumption: Double): Unit

Add a speed-consumption pair to the map.

create

open static fun create(fromMap: MutableMap<Int!, Double!>!): SpeedToConsumptionMap

A static method that returns a new instance of SpeedToConsumptionMap. A map in a new instance that copies all values from that passed as parameter map.

getValues

open fun getValues(): MutableMap<Int!, Double!>

Get a map of speed-consumption values.