Create a new route

As described in the route introduction, after executing the mutation a new route ID will be received in the response. This route ID can then be sent to subscribe to route details and retrieve a polyline and other route data.

Render route and route data

Plot a route on a map and render the route detail data.

Render route and route data

Mutation

To get a route ID, the input must contain at least the EV details and a departure location and destination. Other supported options are described below.

Onboard chargers of 20 kWh are not used in routing unless a vehicle has no plugs above 20 kWh. Therefore, if you add a plug of 20 kWh or less to your route request, this plug will often be ignored.

Arguments

input CreateRouteInput

Required

Input for generating a route.