The Routing API offers a detailed parameterization in case the vehicle used does not correspond to one of the predefined profiles.
The Routing API supports alternative drive train configuration, the user can select one of the available engine types:
ELECTRIC. Depending on the chosen engine type, several other vehicle parameters must be defined to better match the vehicle specific configuration.
averageFuelConsumption to be specified.
averageElectricityConsumption to be specified.
hybridRatio and all required parameters of
ELECTRIC to be specified.
Whenever such a parameter is missing, a warning will be returned with the warning code
ROUTING_MISSING_VEHICLE_PARAMETER. We recommend always to specify all relevant vehicle parameters, otherwise results like emissions, toll, or the monetary cost report may be incomplete or contain wrong results.
When specifying a parameter not supported by the engine type, a warning with the warning code
GENERAL_PARAMETER_IGNORED will be returned. This warning has no effect on the response, but the parameter in question should be removed from the request.
The fuel types
LPG_GASOLINE require the
dualFuelRatio to be specified, and these fuel types are only allowed for engineType
bioFuelRatio is supported ony for the fuelTypes
averageFuelConsumption denotes the effective fuel consumed by the vehicle per 100km. Depending on the
fuelType, it should be expressed in the following units:
- l/100km : for fuel types
- kg/100km : for fuel types
Engines that can operate using a mixture of two different fuels are called dual fuel engines. The Routing API supports
CNG_GASOLINE along with the
dualFuelRatio. This ratio denotes the consumption of CNG/LPG fuel type from the total amount of the vehicle consumption per 100km.
LPG_GASOLINE, the fuel consumption should be given as l/100km and can be computed as following :
averageFuelConsumption LPG_GASOLINE [l/100km] = averageFuelConsumption LIQUEFIED_PETROLEUM_GAS [l/100km] + averageFuelConsumption GASOLINE [l/100km]
dualFuelRatio = averageFuelConsumption LIQUEFIED_PETROLEUM_GAS [l/100km] / averageFuelConsumption LPG_GASOLINE [l/100km]
CNG_GASOLINE, the fuel consumption should be given as kg/100km and can be computed as following :
averageFuelConsumption CNG_GASOLINE [kg/100km] = averageFuelConsumption COMPRESSED_NATURAL_GAS [kg/100km] + density GASOLINE [kg/l] * averageFuelConsumption GASOLINE [l/100km]
density GASOLINE [kg/l] = 0.743
dualFuelRatio = averageFuelConsumption COMPRESSED_NATURAL_GAS [kg/100km] / averageFuelConsumption CNG_GASOLINE [kg/100km].