Mutation
重新计算导航
使用 recalculateNavigation mutation 重新计算进行中的导航会话的路线。当驾驶员偏离原始路线或沿途情况发生变化时,这会很有用。
Mutation
重新计算导航会话的路线需要提供其 id 和 current_location。还可以选择性地包含 state_of_charge、via 或 telemetry 来优化新路线。id 可以通过 startNavigation mutation 获取。
参数
字段
操作可能会失败。请考虑以下错误场景以正确处理。有关错误的更多信息 这里。
empty_array_not_allowed- Array $NAME should have at least one value.
invalid_coordinates- Coordinates provided for $LOCATION are not valid.
invalid_unit- Provided unit type $TYPE for $LOCATION is not valid.
invalid_value- Provided value $VALUE for $LOCATION is not valid. Expected value of type $EXPECTEDTYPE.
navigation_telemetry_invalid- Field $TELEMETRYTYPE cannot be negative.
negative_value_not_allowed- Negative value for $LOCATION is not allowed.
occupants_below_allowed- Provided number of occupants for $LOCATION is not valid. The value must be at least 1.
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.
rate_limit_exceeded- Rate limit exceeded.
tire_pressure_below_allowed- Provided tire pressure is not valid. The value must be at least 1.
zero_or_negative_value_not_allowed- Zero or negative value for $LOCATION is not allowed.
此内容是否有帮助?