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
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.
Error
ISOLINE_FINAL_SOC_EXCEEDS_SOC
Isoline final state of charge cannot exceed the starting state of charge.
Error
ISOLINE_INVALID_NUMBER_OF_POLYGONS
Field polygon_count should be a value between 1 and 20.
Error
ISOLINE_LIMIT_EXCEEDED
Isoline query limit exceeded.
Error
OPERATION_NOT_ALLOWED
You are not allowed to execute this operation. Enable it for the current application in the dashboard or reach out to customer support.
Error
VEHICLE_FREEMIUM_NOT_ALLOWED
You do not have access to this vehicle. Please upgrade to access this vehicle.