Skip to content

Commit

Permalink
add missing directions api parameters to request
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswhong committed Oct 25, 2022
1 parent fdbb264 commit 40003ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- **Add:** add additional EV values to the directions API request

## 0.13.6

- **Add:** add additional valid values for the directions api `annotations` option
Expand Down
7 changes: 6 additions & 1 deletion services/directions.js
Expand Up @@ -206,7 +206,12 @@ Directions.getDirections = function(config) {
ev_connector_types: config.ev_connector_types,
energy_consumption_curve: config.energy_consumption_curve,
ev_charging_curve: config.ev_charging_curve,
ev_min_charge_at_charging_station: config.ev_min_charge_at_charging_station
ev_unconditioned_charging_curve: config.ev_unconditioned_charging_curve,
ev_pre_conditioning_time: config.ev_pre_conditioning_time,
ev_max_ac_charging_power: config.ev_max_ac_charging_power,
ev_min_charge_at_destination: config.ev_min_charge_at_destination,
ev_min_charge_at_charging_station: config.ev_min_charge_at_charging_station,
auxiliary_consumption: config.auxiliary_consumption
});

return this.client.createRequest({
Expand Down

0 comments on commit 40003ba

Please sign in to comment.