Electric vehicle routing
POST /v1/route/ev
Routes a vehicle and estimates energy use from distance and the consumption you provide, including the battery level on arrival and how many charging stops the trip would need. It does not locate charging stations or plan stops at them.
Parameters
locationsarray of object, requiredcostingauto | truck | bicycle | pedestrian | motorcycle | motor_scooter | bus | taxi- Vehicle/costing model for routing Default: "auto".
languagestring- Default: "en".
evobject
Example request
curl -X POST https://eunavigation.duckdns.org/v1/route/ev \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"locations":[{"lat":44.4268,"lon":26.1025},{"lat":48.8566,"lon":2.3522}],"ev":{"battery_kwh":75,"range_km":400,"initial_charge_percent":90,"min_charge_percent":15}}'Price
See the price of /v1/route/ev on the pricing page.