Electricity consumption even more accurately

Charging of electric vehicles takes much longer than refueling a petrol or diesel vehicle, at least until now. Therefore, it is very important to accurately consider all the factors affecting the battery. In the new version of the PTV Developer Routing API V1.29.0 we provide two new features for a more detailed modelling of the electricity consumption.

The first new parameter ‘powerConsumptionDuringService’ allows to model the electricity consumption drained from the battery at a waypoint during the service time. The reason could be an electric appliance like a crane, cooling or train lift.

With the second new parameter ‘useServiceTimeForCharging’ you can choose if charging at a waypoint is possible during service time. This has an influence on the charging optimization because charging during the service time does not need additional time. So charging stations where charging is possible during service time may be preferred over those where this is not possible.

You can explore our revised code sample for electricity consumption, which is extended by both parameters. To get an overview how to use electric vehicles in the Routing API, we provide a concept summarizing all options.

In general, please note that the calculation of electricity consumption is only available in the method ‘calculateRoutePost’.

To keep yourself updated about releases and news you can use the subscribe button at the top of the page. If you got any question do not hesitate to get in contact.