EV Routes with capped speed

To cap consumption related to speed, specify vehicle[speedCap] in the route request. This parameter will impact the route ETA and consumption calculation.

vehicle[speedCap] accepts the maximum speed in m/s, which the user wishes not to exceed. The total energy used in the route will decrease if the capped speed is less than the base/traffic speed.

Example

curl -X GET \
'https://router.hereapi.com/v8/routes?apikey=-2tUjsluW_sYRxJK8MewPG0ug4AfXEUC7I1aPAd5RV4&origin=52.66181,13.38251&destination=51.772324,12.402652&return=polyline,summary,actions,instructions&spans=dynamicSpeedInfo,length,consumption,speedLimit,length&transportMode=car&departureTime=any&ev[freeFlowSpeedTable]=0,0.239,27,0.239,45,0.259,60,0.196,75,0.207,90,0.238,100,0.26,110,0.296,120,0.337,130,0.351,250,0.351&ev[trafficSpeedTable]=0,0.349,27,0.319,45,0.329,60,0.266,75,0.287,90,0.318,100,0.33,110,0.335,120,0.35,130,0.36,250,0.36&ev[ascent]=9&ev[descent]=4.3&ev[initialCharge]=48&ev[maxCharge]=80&ev[chargingCurve]=0,239,32,199,56,167,60,130,64,111,68,83,72,55,76,33,78,17,80,1&ev[maxChargingVoltage]=400&ev[maxChargeAfterChargingStation]=72&ev[minChargeAtChargingStation]=8&ev[minChargeAtDestination]=8&ev[chargingSetupDuration]=300&ev[makeReachable]=false&ev[connectorTypes]=iec62196Type1Combo,iec62196Type2Combo,Chademo,Tesla'
{
  "routes" : [
    {
      "id" : "dc225dd3-78d8-49ad-ad82-6350dc6848cd",
      "sections" : [
        {
          "transport" : {
            "mode" : "car"
          },
          "id" : "c677dd3b-aed2-412a-89d2-49b1d81d5e2e",
          "arrival" : {
            "place" : {
              "type" : "place",
              "location" : {
                "lat" : 51.773121199999999,
                "lng" : 12.3997402,
                "elv" : 116
              },
              "originalLocation" : {
                "lat" : 51.772323999999998,
                "lng" : 12.402652
              }
            },
            "charge" : 4.657
          },
          "type" : "vehicle",
          "departure" : {
            "place" : {
              "type" : "place",
              "location" : {
                "lat" : 52.660966600000002,
                "lng" : 13.3847313,
                "elv" : 87
              },
              "originalLocation" : {
                "lat" : 52.661809900000002,
                "lng" : 13.38251
              }
            },
            "charge" : 48
          },
          "summary" : {
            "consumption" : 43.343000000000004,
            "length" : 145350,
            "baseDuration" : 6337,
            "duration" : 6337
          }
        }
      ]
    }
  ]
}

Without speed cap the total energy used in the route is 43.343 kWh for the length of 145.35km with the travel speed ranging in between 20-35m/s.

For the same route when the speed is capped to 15m/s, the total energy used in the route is reduced to 34.83kWh for the same length of route.

curl -X GET \
'https://router.hereapi.com/v8/routes?apikey=-2tUjsluW_sYRxJK8MewPG0ug4AfXEUC7I1aPAd5RV4&origin=52.66181,13.38251&destination=51.772324,12.402652&return=polyline,summary,actions,instructions&spans=dynamicSpeedInfo,length,consumption,speedLimit,length&transportMode=car&vehicle[speedCap]=15&departureTime=any&ev[freeFlowSpeedTable]=0,0.239,27,0.239,45,0.259,60,0.196,75,0.207,90,0.238,100,0.26,110,0.296,120,0.337,130,0.351,250,0.351&ev[trafficSpeedTable]=0,0.349,27,0.319,45,0.329,60,0.266,75,0.287,90,0.318,100,0.33,110,0.335,120,0.35,130,0.36,250,0.36&ev[ascent]=9&ev[descent]=4.3&ev[initialCharge]=48&ev[maxCharge]=80&ev[chargingCurve]=0,239,32,199,56,167,60,130,64,111,68,83,72,55,76,33,78,17,80,1&ev[maxChargingVoltage]=400&ev[maxChargeAfterChargingStation]=72&ev[minChargeAtChargingStation]=8&ev[minChargeAtDestination]=8&ev[chargingSetupDuration]=300&ev[makeReachable]=false&ev[connectorTypes]=iec62196Type1Combo,iec62196Type2Combo,Chademo,Tesla'
{
  "routes" : [
    {
      "id" : "58f003f1-a472-4f5e-a818-f6ef3b82c8fa",
      "sections" : [
        {
          "transport" : {
            "mode" : "car"
          },
          "id" : "b61bb338-0cb4-41a1-abbb-2c94569d92e3",
          "arrival" : {
            "place" : {
              "type" : "place",
              "location" : {
                "lat" : 51.773121199999999,
                "lng" : 12.3997402,
                "elv" : 116
              },
              "originalLocation" : {
                "lat" : 51.772323999999998,
                "lng" : 12.402652
              }
            },
            "charge" : 13.170500000000001
          },
          "type" : "vehicle",
          "departure" : {
            "place" : {
              "type" : "place",
              "location" : {
                "lat" : 52.660966600000002,
                "lng" : 13.3847313,
                "elv" : 87
              },
              "originalLocation" : {
                "lat" : 52.661809900000002,
                "lng" : 13.38251
              }
            },
            "charge" : 48
          },
          "summary" : {
            "consumption" : 34.829500000000003,
            "length" : 145350,
            "baseDuration" : 10426,
            "duration" : 10426
          }
        }
      ]
    }
  ]
}

results matching ""

    No results matching ""