Calculate consumption without capped speed

This request returns a route with the travel speed ranging in between 20-35 m/s.

curl -X GET \
'https://router.hereapi.com/v8/routes?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'

Without an actual speed cap, the total energy used in this route is 43 kWh for the length of 145 km.

{
  "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
              }
            }
          },
          "type" : "vehicle",
          "departure" : {
            "place" : {
              "type" : "place",
              "location" : {
                "lat" : 52.660966600000002,
                "lng" : 13.3847313,
                "elv" : 87
              },
              "originalLocation" : {
                "lat" : 52.661809900000002,
                "lng" : 13.38251
              }
            }
          },
          "summary" : {
            "consumption" : 43.343000000000004,
            "length" : 145350,
            "baseDuration" : 6337,
            "duration" : 6337
          }
        }
      ]
    }
  ]
}

results matching ""

    No results matching ""