Question
You want to use an electric vehicle in xRoute for route planning and toll cost estimation. The vehicle profile includes an engineType parameter, but it is unclear which parameters are relevant for routing, emission calculations, and toll costs.
Answer
xRoute supports electric vehicles since xServer 2.27. Configure the vehicle profile as follows:
Step 1 – Set the engine type and electricity parameters in the vehicle profile:
{
"vehicleProfile": {
"engine": {
"engineType": "ELECTRIC",
"electricityType": "BATTERY",
"electricityConsumption": 25.0
}
}
}
Supported values for electricityType: BATTERY, HYDROGEN_FUEL_CELL.
Step 2 – Set the CO₂ emission class to enable electric vehicle toll rates in countries where CO₂-based pricing applies:
{
"vehicleProfile": {
"engine": {
"engineType": "ELECTRIC",
"co2EmissionClassEU": 5
}
}
}
CO₂ emission class 5 is reserved for electric vehicles and is the parameter explicitly documented as relevant for toll calculations (categories: routing, toll).
Step 3 – Request emission results in resultFields to retrieve electricity consumption data:
{
"resultFields": {
"emissions": true
}
}
Additions hints
- The documentation states: "Alternative engine types are currently mainly relevant for emission calculations." Therefore, engineType = ELECTRIC does not directly change routing behavior or road access — it primarily affects emission output.
- co2EmissionClassEU is the only engine-related parameter explicitly categorized as toll in the documentation. It is taken into account by toll systems that apply CO₂-based pricing (e.g. certain European toll operators).
- The exact impact on toll costs depends on the toll system and country. If a specific toll system is targeted, verify whether it applies CO₂ class differentiation.
- CO₂ emission class 5 requires engineType: ELECTRIC — the two parameters are interdependent.
- xServer 2 includes a built-in Electric car stored profile that can be used as a starting point for testing.
Related articles
- Vehicle parameters – Technical Concept:
https://xserver2-europe.cloud.ptvgroup.com/dashboard/Default.htm#TechnicalConcepts/Routing/DSC_Vehicle_Parameters.htm - vehicleProfile API Documentation:
https://xserver2-europe.cloud.ptvgroup.com/dashboard/Default.htm#API-Documentation/vehicleprofile.html - Optimize Monetary Cost – Showcase:
https://xserver2-europe.cloud.ptvgroup.com/dashboard/Default.htm#Resources/showcases/Routing/OptimizeMonetaryCost/index.html
Comments
0 comments
Article is closed for comments.