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.
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.
- Support alternative stations along a route
To request alternative charging stations along a route, the
alternative_station_radius
property can be set on the input of the route mutation. The radius should be between500
and5000
meters. This will return all applicable stations within the set radius following the specified powers and standards.
- Support stations as waypoint
A station can be added as a waypoint or as a destination. To do this, add
station_id
torequest_input.via.properties.station
orrequest_input.destination.properties.station
.
- Cargo load and occupants
To apply cargo and occupants, set
request_input.origin.properties.vehicle.total_cargo_weight
andrequest_input.origin.properties.vehicle.occupants
. These values can be overridden on a leg basis by setting them on therequest_input.via.properties.vehicle
. Unless the values are set to0
, each leg inherits the values from the previous one or from theorigin
object.
- Get additional properties
The route legs origin an destination have an optional
properties
attribute. This can be used to fetch details such as a completeaddress
, the currenttemperature
andair_pressure
at that location.
- Using unit arguments
All the fields that support unit conversion have a
unit
argument that can be set. For example, therange_at_origin
andrange_at_destination
can be retrieved inkilometer
,mile
,kilowatt_hour
orpercentage
. Please be aware that the percentages are based upon theusable_kwh
or the capacity included inside this mutation.
- Operator preference
The route request supports ranking or excluding operators based on preference. Operators can be ranked on ten different levels of preference.
level_one
is considered the highest level, andlevel_ten
is the lowest. It is possible to skip levels or add multiple operators to the same level. Every level lowers the preference by 10 percent. Operator ranking can be enabled by setting thetype
topreferred
orrequired
onrequest_input.operators
. If you always prefer and exclude the same operators, we recommend that you add your operator ranking to your client configuration instead. The route request will override any client configuration you might have.
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.
vehicle • RouteVehicleInput
• Required
Vehicle specific input.
id • ID
• Required
ID of the vehicle.
battery • RouteVehicleBatteryInput
EV battery specific configuration.
capacity • StateOfChargeInput
Battery capacity.
value • Float
• Required
Value of the state of charge of the vehicle.
type • StateOfChargeUnit
• Required
Type of the state of charge of the vehicle.
Show StateOfChargeUnit enum values
kilometer
Return the state of charge in kilometers.
mile
Return the state of charge in miles.
kilowatt_hour
Return the state of charge in kilowatt hours.
percentage
Return the state of charge as a percentage.
source • TelemetryInputSource
• Required
Source of inputted data, defaults to 'manual'.
Default • manual
Show TelemetryInputSource enum values
manual
Manually inputted value.
telemetry
Value from the vehicle's telemetry.
state_of_charge • StateOfChargeInput
Battery state of charge.
value • Float
• Required
Value of the state of charge of the vehicle.
type • StateOfChargeUnit
• Required
Type of the state of charge of the vehicle.
Show StateOfChargeUnit enum values
kilometer
Return the state of charge in kilometers.
mile
Return the state of charge in miles.
kilowatt_hour
Return the state of charge in kilowatt hours.
percentage
Return the state of charge as a percentage.
source • TelemetryInputSource
• Required
Source of inputted data, defaults to 'manual'.
Default • manual
Show TelemetryInputSource enum values
manual
Manually inputted value.
telemetry
Value from the vehicle's telemetry.
final_state_of_charge • StateOfChargeInput
Minimum battery state of charge.
value • Float
• Required
Value of the state of charge of the vehicle.
type • StateOfChargeUnit
• Required
Type of the state of charge of the vehicle.
Show StateOfChargeUnit enum values
kilometer
Return the state of charge in kilometers.
mile
Return the state of charge in miles.
kilowatt_hour
Return the state of charge in kilowatt hours.
percentage
Return the state of charge as a percentage.
source • TelemetryInputSource
• Required
Source of inputted data, defaults to 'manual'.
Default • manual
Show TelemetryInputSource enum values
manual
Manually inputted value.
telemetry
Value from the vehicle's telemetry.
temperature • TemperatureInput
Battery temperature.
value • Float
• Required
Value of the temperature.
type • TemperatureUnit
• Required
Type of temperature.
Show TemperatureUnit enum values
Celsius
Return the temperature in Celsius.
Fahrenheit
Return the temperature in Fahrenheit.
current • Float
Battery current in ampere.
voltage • Float
Battery voltage in volts.
power • Float
Vehicle power.
is_charging • Boolean
Vehicle is currently charging.
charging • RouteVehicleChargingInput
Charging configuration.
mode • ChargeMode
Mode that indicates if the charging time is optimized or if always charged to the maximum capacity.
Default • OPTIMIZE_TRAVEL_TIME
Show ChargeMode enum values
OPTIMIZE_TRAVEL_TIME
Optimizes the charging time at each station, in order to decrease the total travel time. You will only charge up until the SOC you need in order to reach the next stop.
ALWAYS_TO_MAX_CHARGE
Charge to the maximum capacity at every charging stop. The default maximum charging capacity is 80%.
minimum_power • Float
Minimum desired power of chargers.
risk_margin • Int
Percentage representing the minimum value of the state of charge at a next charge stop. The value should be between 0 and 60.
Default • 10
connectors • RouteVehicleChargingConnectorInput
Supported connectors.
standard • ConnectorType
• Required
Plug type.
Show ConnectorType enum values
CHADEMO
The connector type is CHAdeMO, DC.
DOMESTIC_A
Standard/domestic household, type "A", NEMA 1-15, 2 pins.
DOMESTIC_B
Standard/domestic household, type "B", NEMA 5-15, 3 pins.
DOMESTIC_C
Standard/domestic household, type "C", CEE 7/17, 2 pins.
DOMESTIC_D
Standard/domestic household, type "D", 3 pins.
DOMESTIC_E
Standard/domestic household, type "E", CEE 7/5 3 pins.
DOMESTIC_F
Standard/domestic household, type "F", CEE 7/4, Schuko, 3 pins.
DOMESTIC_G
Standard/domestic household, type "G", BS 1363, Commonwealth, 3 pins.
DOMESTIC_H
Standard/domestic household, type "H", SI-32, 3 pins.
DOMESTIC_I
Standard/domestic household, type "I", AS 3112, 3 pins.
DOMESTIC_J
Standard/domestic household, type "J", SEV 1011, 3 pins.
DOMESTIC_K
Standard/domestic household, type "K", DS 60884-2-D1, 3 pins.
DOMESTIC_L
Standard/domestic household, type "L", CEI 23-16-VII, 3 pins.
DOMESTIC_M
Standard/Domestic household, type "M", BS 546, 3 pins.
DOMESTIC_N
Standard/Domestic household, type "N", NBR 14136, 3 pins.
DOMESTIC_O
Standard/Domestic household, type "O", TIS 166-2549, 3 pins.
IEC_60309_2_single_16
IEC 60309-2 Industrial connector single phase 16 amperes (usually blue).
IEC_60309_2_three_16
IEC 60309-2 Industrial connector three phase 16 amperes (usually red).
IEC_60309_2_three_32
IEC 60309-2 Industrial connector three phase 32 amperes (usually red).
IEC_60309_2_three_64
IEC 60309-2 Industrial connector three phase 64 amperes (usually red).
IEC_62196_T1
IEC 62196 Type 1 "SAE J1772".
IEC_62196_T1_COMBO
Combo Type 1 based, DC.
IEC_62196_T2
IEC 62196 Type 2 "Mennekes".
IEC_62196_T2_COMBO
Combo Type 2 based, DC.
IEC_62196_T3A
IEC 62196 Type 3A.
IEC_62196_T3C
IEC 62196 Type 3C "Scame".
PANTOGRAPH_BOTTOM_UP
On-board bottom-up-pantograph typically for bus charging.
PANTOGRAPH_TOP_DOWN
Off-board top-down-pantograph typically for bus charging.
TESLA_R
Tesla connector "Roadster"-type (round, 4 pins).
TESLA_S
Tesla connector "Model-S"-type (oval, 5 pins).
GB_T
The connector type is GB_T (Chinese standard), DC.
CHAOJI
The ChaoJi connector. The new generation charging connector, harmonized between CHAdeMO and GB/T. DC.
NEMA_5_20
The connector type is NEMA 5-20, 3 pins.
NEMA_6_30
The connector type is NEMA 6-30, 3 pins.
NEMA_6_50
The connector type is NEMA 6-50, 3 pins.
NEMA_10_30
The connector type is NEMA 10-30, 3 pins.
NEMA_10_50
The connector type is NEMA 10-50, 3 pins.
NEMA_14_30
The connector type is NEMA 14-30, 3 pins, rating of 30 A.
NEMA_14_50
The connector type is NEMA 14-50, 3 pins, rating of 50 A.
max_charge_speed • ChargeSpeedInput
• Required
Maximum charging speed for this plug.
value • Float
• Required
Value of the charge speed of the battery.
type • ChargeSpeedUnit
• Required
Type of the charge speed of the battery.
Show ChargeSpeedUnit enum values
kilowatt_hour
Return the charge speed in kilowatt hours.
kilometers_per_hour
Return the charge speed in kilometers per hour.
miles_per_hour
Return the charge speed in miles per hour.
source • TelemetryInputSource
• Required
Source of inputted data, defaults to 'manual'.
Default • manual
Show TelemetryInputSource enum values
manual
Manually inputted value.
telemetry
Value from the vehicle's telemetry.
adapters • RouteVehicleChargingConnectorInput
Supported adapters.
standard • ConnectorType
• Required
Plug type.
Show ConnectorType enum values
CHADEMO
The connector type is CHAdeMO, DC.
DOMESTIC_A
Standard/domestic household, type "A", NEMA 1-15, 2 pins.
DOMESTIC_B
Standard/domestic household, type "B", NEMA 5-15, 3 pins.
DOMESTIC_C
Standard/domestic household, type "C", CEE 7/17, 2 pins.
DOMESTIC_D
Standard/domestic household, type "D", 3 pins.
DOMESTIC_E
Standard/domestic household, type "E", CEE 7/5 3 pins.
DOMESTIC_F
Standard/domestic household, type "F", CEE 7/4, Schuko, 3 pins.
DOMESTIC_G
Standard/domestic household, type "G", BS 1363, Commonwealth, 3 pins.
DOMESTIC_H
Standard/domestic household, type "H", SI-32, 3 pins.
DOMESTIC_I
Standard/domestic household, type "I", AS 3112, 3 pins.
DOMESTIC_J
Standard/domestic household, type "J", SEV 1011, 3 pins.
DOMESTIC_K
Standard/domestic household, type "K", DS 60884-2-D1, 3 pins.
DOMESTIC_L
Standard/domestic household, type "L", CEI 23-16-VII, 3 pins.
DOMESTIC_M
Standard/Domestic household, type "M", BS 546, 3 pins.
DOMESTIC_N
Standard/Domestic household, type "N", NBR 14136, 3 pins.
DOMESTIC_O
Standard/Domestic household, type "O", TIS 166-2549, 3 pins.
IEC_60309_2_single_16
IEC 60309-2 Industrial connector single phase 16 amperes (usually blue).
IEC_60309_2_three_16
IEC 60309-2 Industrial connector three phase 16 amperes (usually red).
IEC_60309_2_three_32
IEC 60309-2 Industrial connector three phase 32 amperes (usually red).
IEC_60309_2_three_64
IEC 60309-2 Industrial connector three phase 64 amperes (usually red).
IEC_62196_T1
IEC 62196 Type 1 "SAE J1772".
IEC_62196_T1_COMBO
Combo Type 1 based, DC.
IEC_62196_T2
IEC 62196 Type 2 "Mennekes".
IEC_62196_T2_COMBO
Combo Type 2 based, DC.
IEC_62196_T3A
IEC 62196 Type 3A.
IEC_62196_T3C
IEC 62196 Type 3C "Scame".
PANTOGRAPH_BOTTOM_UP
On-board bottom-up-pantograph typically for bus charging.
PANTOGRAPH_TOP_DOWN
Off-board top-down-pantograph typically for bus charging.
TESLA_R
Tesla connector "Roadster"-type (round, 4 pins).
TESLA_S
Tesla connector "Model-S"-type (oval, 5 pins).
GB_T
The connector type is GB_T (Chinese standard), DC.
CHAOJI
The ChaoJi connector. The new generation charging connector, harmonized between CHAdeMO and GB/T. DC.
NEMA_5_20
The connector type is NEMA 5-20, 3 pins.
NEMA_6_30
The connector type is NEMA 6-30, 3 pins.
NEMA_6_50
The connector type is NEMA 6-50, 3 pins.
NEMA_10_30
The connector type is NEMA 10-30, 3 pins.
NEMA_10_50
The connector type is NEMA 10-50, 3 pins.
NEMA_14_30
The connector type is NEMA 14-30, 3 pins, rating of 30 A.
NEMA_14_50
The connector type is NEMA 14-50, 3 pins, rating of 50 A.
max_charge_speed • ChargeSpeedInput
• Required
Maximum charging speed for this plug.
value • Float
• Required
Value of the charge speed of the battery.
type • ChargeSpeedUnit
• Required
Type of the charge speed of the battery.
Show ChargeSpeedUnit enum values
kilowatt_hour
Return the charge speed in kilowatt hours.
kilometers_per_hour
Return the charge speed in kilometers per hour.
miles_per_hour
Return the charge speed in miles per hour.
source • TelemetryInputSource
• Required
Source of inputted data, defaults to 'manual'.
Default • manual
Show TelemetryInputSource enum values
manual
Manually inputted value.
telemetry
Value from the vehicle's telemetry.
tire_pressure • TirePressureInput
Average tire pressures of all wheels.
value • Float
• Required
Values for the tire pressure, starting from the front side right to left and to the rear.
type • PressureUnit
• Required
Type of the value of pressure.
Show PressureUnit enum values
bar
Return the pressure in bar.
pounds_per_square_inch
Return the pressure in pounds per square inch.
source • TelemetryInputSource
• Required
Source of inputted data, defaults to 'manual'.
Default • manual
Show TelemetryInputSource enum values
manual
Manually inputted value.
telemetry
Value from the vehicle's telemetry.
odometer • OdometerInput
Odometer (mileage) reading.
value • Float
• Required
Value of the vehicle's odometer.
type • DistanceUnit
• Required
Type of the value of the vehicle's odometer.
Show DistanceUnit enum values
meter
Return the distance in meters.
foot
Return the distance in feet.
kilometer
Return the distance in kilometers.
mile
Return the distance in miles.
source • TelemetryInputSource
• Required
Source of inputted data, defaults to 'manual'.
Default • manual
Show TelemetryInputSource enum values
manual
Manually inputted value.
telemetry
Value from the vehicle's telemetry.
auxiliary_consumption • AuxiliaryConsumptionInput
Average auxiliary power consumption.
value • Float
• Required
Value of the auxiliary power consumption of the vehicle.
type • AuxiliaryConsumptionUnit
• Required
Type of auxiliary power consumption of the vehicle.
Show AuxiliaryConsumptionUnit enum values
kilowatt_hour
Return the auxiliary consumption in kilowatt hours.
source • TelemetryInputSource
• Required
Source of inputted data, defaults to 'manual'.
Default • manual
Show TelemetryInputSource enum values
manual
Manually inputted value.
telemetry
Value from the vehicle's telemetry.
climate • Boolean
Flag which indicates if climate control is on.
heat_pump • HeatPumpMode
Vehicle Heat Pump configuration.
Default • default
Show HeatPumpMode enum values
default
Default to the vehicle configuration.
installed
Vehicle has it installed.
none
Vehicle doesn't have it installed.
cabin • RouteVehicleCabinInput
Vehicle cabin configuration for creating the route.
is_preconditioned • Boolean
• Required
Flag which indicates if the vehicle cabin was preconditioned for the desired temperature.
Default • false
desired_temperature • TemperatureInput
• Required
Desired cabin temperature. Default is 20 degrees Celsius or 68 degrees Fahrenheit.
value • Float
• Required
Value of the temperature.
type • TemperatureUnit
• Required
Type of temperature.
Show TemperatureUnit enum values
Celsius
Return the temperature in Celsius.
Fahrenheit
Return the temperature in Fahrenheit.
motor_rpm • Int
Revolutions per minute of the motor, a measure of the rotational speed of the motor's rotor component.
outside_temperature • TemperatureInput
Outside temperature.
value • Float
• Required
Value of the temperature.
type • TemperatureUnit
• Required
Type of temperature.
Show TemperatureUnit enum values
Celsius
Return the temperature in Celsius.
Fahrenheit
Return the temperature in Fahrenheit.
is_parked • Boolean
Vehicle is in park, neutral or turned off.
vehicle_speed • VehicleSpeedInput
Vehicle speed.
value • Float
• Required
Value of the vehicle speed.
type • SpeedUnit
• Required
Type of the vehicle speed.
Show SpeedUnit enum values
kilometers_per_hour
Return the speed in kilometers per hour.
miles_per_hour
Return the speed in miles per hour.
source • TelemetryInputSource
• Required
Source of inputted data, defaults to 'manual'.
Default • manual
Show TelemetryInputSource enum values
manual
Manually inputted value.
telemetry
Value from the vehicle's telemetry.
heading • Float
Current heading in degrees.
origin • RouteOriginFeaturePointInput
• Required
Origin of a route.
id • ID
ID of the feature.
type • FeatureType
• Required
Feature type.
Show FeatureType enum values
Feature
geometry • PointInput
• Required
Geometry of the feature.
type • PointType
• Required
Point type.
Show PointType enum values
Point
coordinates • Float
• Required
Coordinates [longitude, latitude].
properties • RouteOriginPropertiesInput
Optional object where additional properties can be specified.
location • RoutePropertiesLocationInput
Data about the origin location.
name • String
Name that should overwrite the name that is automatically assigned to this location (for example: address or station name).
stop_duration • Int
Duration to stay at this point.
vehicle • RoutePropertiesVehicleInput
Vehicle data at the origin location.
occupants • Int
Number of occupants present in the vehicle.
total_occupant_weight • TotalOccupantWeightInput
Combined weight of the occupants.
value • Float
• Required
Value of the current weight of the occupants.
type • WeightUnit
• Required
Type of the current weight of the occupants.
Show WeightUnit enum values
kilogram
Return the weight in kilograms.
pound
Return the weight in pounds.
source • TelemetryInputSource
• Required
Source of inputted data, defaults to 'manual'.
Default • manual
Show TelemetryInputSource enum values
manual
Manually inputted value.
telemetry
Value from the vehicle's telemetry.
total_cargo_weight • TotalCargoWeightInput
Weight of the cargo.
value • Float
• Required
Value of the current weight of the cargo.
type • WeightUnit
• Required
Type of the current weight of the cargo.
Show WeightUnit enum values
kilogram
Return the weight in kilograms.
pound
Return the weight in pounds.
source • TelemetryInputSource
• Required
Source of inputted data, defaults to 'manual'.
Default • manual
Show TelemetryInputSource enum values
manual
Manually inputted value.
telemetry
Value from the vehicle's telemetry.
destination • RouteDestinationFeaturePointInput
• Required
Destination of a route.
id • ID
ID of the feature.
type • FeatureType
• Required
Feature type.
Show FeatureType enum values
Feature
geometry • PointInput
• Required
Geometry of the feature.
type • PointType
• Required
Point type.
Show PointType enum values
Point
coordinates • Float
• Required
Coordinates [longitude, latitude].
properties • RouteDestinationPropertiesInput
Optional object where additional properties can be specified.
location • RoutePropertiesLocationInput
Data about the destination location.
name • String
Name that should overwrite the name that is automatically assigned to this location (for example: address or station name).
stop_duration • Int
Duration to stay at this point.
station • RoutePropertiesStationInput
Data about the destination station.
station_id • ID
ID of the station. When provided and valid, the coordinates of this station will be used.
external_station_id • ID
External ID of the station. When provided and valid, the coordinates of this station will be used.
via • RouteViaFeaturePointInput
Optional via points of a route.
id • ID
ID of the feature.
type • FeatureType
• Required
Feature type.
Show FeatureType enum values
Feature
geometry • PointInput
• Required
Geometry of the feature.
type • PointType
• Required
Point type.
Show PointType enum values
Point
coordinates • Float
• Required
Coordinates [longitude, latitude].
properties • RouteViaPropertiesInput
Optional object where additional properties can be specified.
location • RoutePropertiesLocationInput
Location data of the via point.
name • String
Name that should overwrite the name that is automatically assigned to this location (for example: address or station name).
stop_duration • Int
Duration to stay at this point.
vehicle • RoutePropertiesVehicleInput
Vehicle data of the via point.
occupants • Int
Number of occupants present in the vehicle.
total_occupant_weight • TotalOccupantWeightInput
Combined weight of the occupants.
value • Float
• Required
Value of the current weight of the occupants.
type • WeightUnit
• Required
Type of the current weight of the occupants.
Show WeightUnit enum values
kilogram
Return the weight in kilograms.
pound
Return the weight in pounds.
source • TelemetryInputSource
• Required
Source of inputted data, defaults to 'manual'.
Default • manual
Show TelemetryInputSource enum values
manual
Manually inputted value.
telemetry
Value from the vehicle's telemetry.
total_cargo_weight • TotalCargoWeightInput
Weight of the cargo.
value • Float
• Required
Value of the current weight of the cargo.
type • WeightUnit
• Required
Type of the current weight of the cargo.
Show WeightUnit enum values
kilogram
Return the weight in kilograms.
pound
Return the weight in pounds.
source • TelemetryInputSource
• Required
Source of inputted data, defaults to 'manual'.
Default • manual
Show TelemetryInputSource enum values
manual
Manually inputted value.
telemetry
Value from the vehicle's telemetry.
station • RoutePropertiesStationInput
Station data of the via point.
station_id • ID
ID of the station. When provided and valid, the coordinates of this station will be used.
external_station_id • ID
External ID of the station. When provided and valid, the coordinates of this station will be used.
operators • RouteOperatorPreferencesInput
Prioritized operators for a route calculation.
ranking • RouteOperatorPreferencesRankingInput
Ranking of an operator with multiple levels, each level having its own penalty value.
type • RouteOperatorsType
• Required
Flag indicating if the operators ranking should be preferred or required.
Show RouteOperatorsType enum values
none
Operators ranking will not be taken into account if no type is given.
preferred
Operators given in the operators ranking will be preferred when calculating routes.
required
Operators given in the operators ranking will be required when calculating routes, all other operators will be ignored.
levels • RouteOperatorPreferencesRankingLevelsInput
Ranking levels for operator ranking.
low • RouteOperatorsValueInput
Least significant level for operator ranking.
id • ID
• Required
ID of an operator.
countries • CountryCodeAlpha2
List of countries in which the operator should be preferred/excluded. When omitted the operator will be preferred/excluded in every country.
Default • []
Show CountryCodeAlpha2 enum values
AD
AE
AF
AG
AI
AL
AM
AN
AO
AQ
AR
AS
AT
AU
AW
AX
AZ
BA
BB
BD
BE
BF
BG
BH
BI
BJ
BL
BM
BN
BO
BQ
BR
BS
BT
BV
BW
BY
BZ
CA
CC
CD
CF
CG
CH
CI
CK
CL
CM
CN
CO
CR
CS
CU
CV
CW
CX
CY
CZ
DE
DJ
DK
DM
DO
DZ
EC
EE
EG
EH
ER
ES
ET
FI
FJ
FK
FM
FO
FR
GA
GB
GD
GE
GF
GG
GH
GI
GL
GM
GN
GP
GQ
GR
GS
GT
GU
GW
GY
HK
HM
HN
HR
HT
HU
ID
IE
IL
IM
IN
IO
IQ
IR
IS
IT
JE
JM
JO
JP
KE
KG
KH
KI
KM
KN
KP
KR
KW
KY
KZ
LA
LB
LC
LI
LK
LR
LS
LT
LU
LV
LY
MA
MC
MD
ME
MF
MG
MH
MK
ML
MM
MN
MO
MP
MQ
MR
MS
MT
MU
MV
MW
MX
MY
MZ
NA
NC
NE
NF
NG
NI
NL
NO
NP
NR
NU
NZ
OM
PA
PE
PF
PG
PH
PK
PL
PM
PN
PR
PS
PT
PW
PY
QA
RE
RKS
RO
RS
RU
RW
SA
SB
SC
SD
SE
SG
SH
SI
SJ
SK
SL
SM
SN
SO
SR
SS
ST
SV
SX
SY
SZ
TC
TD
TF
TG
TH
TJ
TK
TL
TM
TN
TO
TR
TT
TV
TW
TZ
UA
UG
UM
US
UY
UZ
VA
VC
VE
VG
VI
VN
VU
WF
WS
XK
YE
YT
ZA
ZM
ZW
medium • RouteOperatorsValueInput
Medium level for operator ranking.
id • ID
• Required
ID of an operator.
countries • CountryCodeAlpha2
List of countries in which the operator should be preferred/excluded. When omitted the operator will be preferred/excluded in every country.
Default • []
Show CountryCodeAlpha2 enum values
AD
AE
AF
AG
AI
AL
AM
AN
AO
AQ
AR
AS
AT
AU
AW
AX
AZ
BA
BB
BD
BE
BF
BG
BH
BI
BJ
BL
BM
BN
BO
BQ
BR
BS
BT
BV
BW
BY
BZ
CA
CC
CD
CF
CG
CH
CI
CK
CL
CM
CN
CO
CR
CS
CU
CV
CW
CX
CY
CZ
DE
DJ
DK
DM
DO
DZ
EC
EE
EG
EH
ER
ES
ET
FI
FJ
FK
FM
FO
FR
GA
GB
GD
GE
GF
GG
GH
GI
GL
GM
GN
GP
GQ
GR
GS
GT
GU
GW
GY
HK
HM
HN
HR
HT
HU
ID
IE
IL
IM
IN
IO
IQ
IR
IS
IT
JE
JM
JO
JP
KE
KG
KH
KI
KM
KN
KP
KR
KW
KY
KZ
LA
LB
LC
LI
LK
LR
LS
LT
LU
LV
LY
MA
MC
MD
ME
MF
MG
MH
MK
ML
MM
MN
MO
MP
MQ
MR
MS
MT
MU
MV
MW
MX
MY
MZ
NA
NC
NE
NF
NG
NI
NL
NO
NP
NR
NU
NZ
OM
PA
PE
PF
PG
PH
PK
PL
PM
PN
PR
PS
PT
PW
PY
QA
RE
RKS
RO
RS
RU
RW
SA
SB
SC
SD
SE
SG
SH
SI
SJ
SK
SL
SM
SN
SO
SR
SS
ST
SV
SX
SY
SZ
TC
TD
TF
TG
TH
TJ
TK
TL
TM
TN
TO
TR
TT
TV
TW
TZ
UA
UG
UM
US
UY
UZ
VA
VC
VE
VG
VI
VN
VU
WF
WS
XK
YE
YT
ZA
ZM
ZW
high • RouteOperatorsValueInput
Most significant level three for operator ranking.
id • ID
• Required
ID of an operator.
countries • CountryCodeAlpha2
List of countries in which the operator should be preferred/excluded. When omitted the operator will be preferred/excluded in every country.
Default • []
Show CountryCodeAlpha2 enum values
AD
AE
AF
AG
AI
AL
AM
AN
AO
AQ
AR
AS
AT
AU
AW
AX
AZ
BA
BB
BD
BE
BF
BG
BH
BI
BJ
BL
BM
BN
BO
BQ
BR
BS
BT
BV
BW
BY
BZ
CA
CC
CD
CF
CG
CH
CI
CK
CL
CM
CN
CO
CR
CS
CU
CV
CW
CX
CY
CZ
DE
DJ
DK
DM
DO
DZ
EC
EE
EG
EH
ER
ES
ET
FI
FJ
FK
FM
FO
FR
GA
GB
GD
GE
GF
GG
GH
GI
GL
GM
GN
GP
GQ
GR
GS
GT
GU
GW
GY
HK
HM
HN
HR
HT
HU
ID
IE
IL
IM
IN
IO
IQ
IR
IS
IT
JE
JM
JO
JP
KE
KG
KH
KI
KM
KN
KP
KR
KW
KY
KZ
LA
LB
LC
LI
LK
LR
LS
LT
LU
LV
LY
MA
MC
MD
ME
MF
MG
MH
MK
ML
MM
MN
MO
MP
MQ
MR
MS
MT
MU
MV
MW
MX
MY
MZ
NA
NC
NE
NF
NG
NI
NL
NO
NP
NR
NU
NZ
OM
PA
PE
PF
PG
PH
PK
PL
PM
PN
PR
PS
PT
PW
PY
QA
RE
RKS
RO
RS
RU
RW
SA
SB
SC
SD
SE
SG
SH
SI
SJ
SK
SL
SM
SN
SO
SR
SS
ST
SV
SX
SY
SZ
TC
TD
TF
TG
TH
TJ
TK
TL
TM
TN
TO
TR
TT
TV
TW
TZ
UA
UG
UM
US
UY
UZ
VA
VC
VE
VG
VI
VN
VU
WF
WS
XK
YE
YT
ZA
ZM
ZW
exclude • RouteOperatorsValueInput
Route operators that should be excluded.
id • ID
• Required
ID of an operator.
countries • CountryCodeAlpha2
List of countries in which the operator should be preferred/excluded. When omitted the operator will be preferred/excluded in every country.
Default • []
Show CountryCodeAlpha2 enum values
AD
AE
AF
AG
AI
AL
AM
AN
AO
AQ
AR
AS
AT
AU
AW
AX
AZ
BA
BB
BD
BE
BF
BG
BH
BI
BJ
BL
BM
BN
BO
BQ
BR
BS
BT
BV
BW
BY
BZ
CA
CC
CD
CF
CG
CH
CI
CK
CL
CM
CN
CO
CR
CS
CU
CV
CW
CX
CY
CZ
DE
DJ
DK
DM
DO
DZ
EC
EE
EG
EH
ER
ES
ET
FI
FJ
FK
FM
FO
FR
GA
GB
GD
GE
GF
GG
GH
GI
GL
GM
GN
GP
GQ
GR
GS
GT
GU
GW
GY
HK
HM
HN
HR
HT
HU
ID
IE
IL
IM
IN
IO
IQ
IR
IS
IT
JE
JM
JO
JP
KE
KG
KH
KI
KM
KN
KP
KR
KW
KY
KZ
LA
LB
LC
LI
LK
LR
LS
LT
LU
LV
LY
MA
MC
MD
ME
MF
MG
MH
MK
ML
MM
MN
MO
MP
MQ
MR
MS
MT
MU
MV
MW
MX
MY
MZ
NA
NC
NE
NF
NG
NI
NL
NO
NP
NR
NU
NZ
OM
PA
PE
PF
PG
PH
PK
PL
PM
PN
PR
PS
PT
PW
PY
QA
RE
RKS
RO
RS
RU
RW
SA
SB
SC
SD
SE
SG
SH
SI
SJ
SK
SL
SM
SN
SO
SR
SS
ST
SV
SX
SY
SZ
TC
TD
TF
TG
TH
TJ
TK
TL
TM
TN
TO
TR
TT
TV
TW
TZ
UA
UG
UM
US
UY
UZ
VA
VC
VE
VG
VI
VN
VU
WF
WS
XK
YE
YT
ZA
ZM
ZW
season • RouteSeason
Optional flag to specify the season.
Default • current
Show RouteSeason enum values
summer
We suppose it is summer and we have the best weather conditions.
winter
We suppose it is winter and we have the worst weather conditions.
current
We fetch the current weather conditions.
alternative_station_radius • Int
Alternative stations along a route within a specified radius in meters (minimum 500, maximum 5000).
departure_time • DateTime
Route departure time.
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
OCCUPANTS_ABOVE_ALLOWED
Provided number of occupants for $LOCATION is not valid. The value must be less than $OCCUPANTSCOUNT for this vehicle.
Error
OCCUPANTS_BELOW_ALLOWED
Provided number of occupants for $LOCATION is not valid. The value must be at least 1.
Error
OPERATOR_BOTH_EXCLUDED_AND_RANKING
Operator $OPERATORID is both in the ranking and excluded lists.
Error
OPERATOR_DUPLICATED_IN_EXCLUDE
Operator $OPERATORID is multiple times in the exclude lists.
Error
OPERATOR_DUPLICATED_IN_RANKING
Operator $OPERATORID is multiple times in the ranking lists.
Error
OPERATOR_INVALID_RANKING
Operator ranking must be between 1 and 10.
Error
OPERATOR_NOT_FOUND
No operator was found with the $OPERATORID ID.
Error
OPERATOR_RANKING_NONE_GIVEN
The route operator type was set to $ROUTEOPTYPE, but no ranking was provided. Please add an operator to your client or route request.
Error
ROUTE_BATTERY_CAPACITY_ABOVE_ALLOWED
The provided battery capacity is too high. The value must be less than or equal to $MAX kwh.
Error
ROUTE_BATTERY_CAPACITY_BELOW_ALLOWED
The provided battery capacity is too small. The value must be greater than or equal to $MIN kwh.
Error
ROUTE_CARGO_BELOW_ALLOWED
Provided amount of cargo weight is not valid . The value must be greater than 0.
Error
ROUTE_DESTINATION_INVALID_PROPERTIES
Destination properties are invalid. $MESSAGE
Error
ROUTE_DESTINATION_STATION_AND_EXTERNAL_STATION_NOT_MATCHING
The destination station for the route requested was not matched with the external station.
Error
ROUTE_DESTINATION_STATION_NOT_FOUND
The destination station for the route requested was not found with the provided ID.
Error
ROUTE_FINAL_SOC_EXCEEDING_BATTERY_CAPACITY
The provided final state of charge is too high. The value must be less than or equal to 80% of the vehicle battery capacity.
Error
ROUTE_INVALID_DESTINATION_COORDINATES
The destination coordinates provided are not valid.
Error
ROUTE_INVALID_ORIGIN_COORDINATES
The origin coordinates provided are not valid.
Error
ROUTE_INVALID_SAFE_RISK_MARGIN
Safe risk margin needs to be a value between 0 and 60.
Error
ROUTE_INVALID_VIA_COORDINATES
The via coordinates provided are not valid.
Error
ROUTE_MAX_NUMBER_OF_PASSENGERS_EXCEEDED
Provided number of passengers is not valid. The value must be between 1 and $PASSENGERCOUNT for this vehicle.
Error
ROUTE_MIN_POWER_BELOW_ALLOWED
The provided minimum power is too small. The value must be greater than 0 kwh.
Error
ROUTE_OCCUPANT_WEIGHT_BELOW_ALLOWED
Provided occupant weight is not valid. The value must be greater than 0.
Error
ROUTE_RADIUS_ABOVE_ALLOWED
The radius value is above allowed, the maximum value is 5000 meters.
Error
ROUTE_RADIUS_BELOW_ALLOWED
The radius value is below allowed, the minimum value is 500 meters.
Error
ROUTE_SAME_COORDINATES_CONSECUTIVE_VIA
The coordinates of consecutive via points cannot be the same.
Error
ROUTE_SAME_COORDINATES_ORIGIN_DESTINATION
The origin coordinates cannot be the same as the destination coordinates.
Error
ROUTE_SAME_COORDINATES_ORIGIN_VIA
The origin coordinates cannot be the same as the (first) via point coordinates.
Error
ROUTE_SAME_COORDINATES_VIA_DESTINATION
The (last) via coordinates cannot be the same as the destination coordinates.
Error
ROUTE_STATION_INVALID_CHARGER
The charger standard used on this vehicle is not supported by the station.
Error
ROUTE_STATION_INVALID_MIN_POWER
The minimum power requested is higher than the station could support.
Error
ROUTE_STATION_INVALID_SPEED
The station speed is not fast or turbo.
Error
ROUTE_VIA_CARGO_BELOW_ALLOWED
Provided amount of cargo is not valid. The value must be greater than 0.
Error
ROUTE_VIA_INVALID_PROPERTIES
Via properties are invalid. $MESSAGE
Error
ROUTE_VIA_STATION_AND_EXTERNAL_STATION_NOT_MATCHING
The via station for the route requested was not matched with the external station.
Error
ROUTE_VIA_STATION_NOT_FOUND
The station ID used as a via for the requested route was not found.
Error
SOC_EXCEEDING_BATTERY_CAPACITY
The provided state of charge for $LOCATION is too high. The value must be less than or equal to the vehicle battery capacity.
Error
STATION_DESTINATION_COORDINATES_NOT_MATCHING
Coordinates [$DESTINATIONCOORDINATES] of destination don't match with station coordinates [$STATIONCOORDINATES].
Error
STATION_VIA_COORDINATES_NOT_MATCHING
Coordinates [$VIACOORDINATES] of via don't match with station coordinates [$STATIONCOORDINATES].