A consumption-based isoline can be requested to visualize the appropriate range available for a given consumption value, for both electric and fuel-based vehicles.
Electric vehicles
Electric vehicles have a limited reachable range based on their current battery charge and factors affecting the rate of energy consumed, such as road slope or auxiliary power usage. Therefore, it is useful to visualize the appropriate range to avoid running out of energy before reaching a charging point.
A consumption based isoline for an electric vehicle, can be requested using range[type]=consumption and providing range[values] in Wh. Since vehicles have unique consumption parameters, they are to be specified in the request for an accurate range to be calculated. The consumption parameters for electric vehicles are to be specified in the ev namespace, as presented in the example request below. For more information, see Consumption model.
curl-X GET \'https://isoline.router.hereapi.com/v8/isolines?origin=52.532988,13.352852&range[type]=consumption&range[values]=20000&transportMode=car&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[auxiliaryConsumption]=1.8'
Fuel-based vehicles
Note: This feature is currently a Beta version.
A consumption based isoline for an fuel-based vehicle, can be requested using range[type]=consumption and providing range[values] in different units based on fuel[type]. The different units for range[values] are:
Vehicle Type
Unit
Diesel, Petrol & LPG
milliliters (ml)
CNG
grams (gm)
Since fuel-based vehicles can have different consumption parameters based on fuel-type (petrol, diesel, etc.) and other factors, the consumption parameters are to be specified in the request for an accurate range calculation. The consumption parameters for fuel-based vehicles are to be specified in the fuel namespace, refer to the example request below for details. For more information, see Consumption model.
# Isoline Requestcurl-X GET \
'https://isoline.router.hereapi.com/v8/isolines?apikey=DEFAULT_API_KEY&origin=52.536214,13.391261&range[type]=consumption&range[values]=10000&transportMode=car&fuel[type]=diesel&fuel[freeflowspeedtable]=0,0,60,0.1,80,0.12&fuel[trafficspeedtable]=0,0,60,0.1,80,0.12&fuel[additionalconsumption]=1.8&fuel[ascent]=0.1