charging-all パラメータを使用してルートを計算します
以下は、利用可能なすべての EV パラメータを含むリクエストです。 最近使用可能になったパラメータについては、 API リファレンス を確認する必要がある場合があります。
curl -X GET \
https://router.hereapi.com/v8/routes?departureTime=any&origin=52.533959,13.404780&ev[connectorTypes]=iec62196Type2Combo&transportMode=car&destination=51.741505,14.352413&return=summary&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[auxiliaryConsumption]=1.8&ev[ascent]=9&ev[descent]=4.3&ev[makeReachable]=true&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[maxChargingCurrent]=250&ev[maxChargeAfterChargingStation]=72&ev[minChargeAtChargingStation]=8&ev[minChargeAtDestination]=8&ev[chargingSetupDuration]=300&apikey={YOUR_API_KEY}
{
"routes": [
{
"id": "dbadad01-1177-4c72-bfe9-a6b89ffa8d30",
"sections": [
{
"id": "9756dd53-ac2d-46bd-a511-a4dd76bc99b6",
"type": "vehicle",
"postActions": [
{
"action": "chargingSetup",
"duration": 300
},
{
"action": "charging",
"duration": 541,
"consumablePower": 100,
"arrivalCharge": 40.9789,
"targetCharge": 56
}
],
"departure": {
"place": {
"type": "place",
"location": {
"lat": 52.5338756,
"lng": 13.4050139,
"elv": 91
},
"originalLocation": {
"lat": 52.5339589,
"lng": 13.4047799
}
},
"charge": 48
},
"arrival": {
"place": {
"type": "chargingStation",
"location": {
"lat": 52.4278437,
"lng": 13.5197486,
"elv": 75
},
"id": "5103"
},
"charge": 40.9789
},
"summary": {
"duration": 2615,
"length": 17982,
"consumption": -8,
"baseDuration": 2615
},
"transport": {
"mode": "car"
}
},
{
"id": "a1783ce0-9e2a-4e03-9568-61a3e3498b42",
"type": "vehicle",
"departure": {
"place": {
"type": "chargingStation",
"location": {
"lat": 52.4278437,
"lng": 13.5197486,
"elv": 75
},
"id": "5103"
},
"charge": 56
},
"arrival": {
"place": {
"type": "place",
"location": {
"lat": 51.7412356,
"lng": 14.3525337,
"elv": 115
},
"originalLocation": {
"lat": 51.741505,
"lng": 14.3524129
}
},
"charge": 12.1218
},
"summary": {
"duration": 4379,
"length": 114451,
"consumption": 43.8782,
"baseDuration": 4379
},
"transport": {
"mode": "car"
}
}
]
}
]
}