Create an isoline

Isolines are an effective way to visualize a vehicle’s range and a powerful tool to combat range anxiety. By letting the end-user select a vehicle and an origin, an isoline can be generated that shows how far the vehicle can drive in all directions from the origin on a single charge. Variables such as weather, taking a ferry or even doing a round-trip can be taken into account and exposed to the end-user. This way the EV's range becomes even more clear. To control response and rendering times, more advanced settings such as the precision and number of polygons can be customized.

Isoline

Show the distance a vehicle is able to go from a certain location

Isoline

Mutation

To start the createIsoline mutation, it is required to provide an origin (longitude, latitude) and a vehicle id. The id can be fetched through the vehicleList query.

Arguments

input IsolineInput

Required

Isoline input

Response

A response can either contain a data or an errors object. The response header will always return 200 as a status code.

Data object

When successful, a data object will be returned with the requested fields. If there are no fields present the data object will return the operation name with the appropriate return type. If the operation was a query, this output will be an object of the schema’s query root type; if the operation was a mutation, this output will be an object of the schema’s mutation root type.

Error object

If unsuccessful, an errors object will be returned with more details in the extensions object. The error object can contain any of the following objects.