The HERE Routing API v7 allows you to specify vehicle specific parameters, which are then used to calculate fuel or energy consumption for a car on a given route. The interface is generic to allow support for multiple different models. The HERE Routing API v7 currently supports the standard model.

Standard consumption model

To specify the standard model, add consumptionmodel=standard to a request. You must provide additional information in the query parameter customConsumptionDetails. The unit of energy for this model is not defined and can be determined by the user. This documentation uses reference meter as a unit of energy. The term reference meter refers to the amount of energy needed to traverse 1 meter on a straight road at optimal speed. The following table shows all the possible parameters that can be sent to the standard consumption model.
You must send all the parameters in one string, separated by semicolons. The example below illustrates a set of correct consumption model parameters for the standard model:
customconsumptiondetails=
speed,0,1.7,10,1.4,30,1.1,50,1.0,70,1.1,100,1.2,120,1.4,140,1.8;
ascent,30.0;descent,10.0;auxiliaryconsumption,0.8;acceleration,0.2;deceleration,0.3