Mutation
重新计算导航
使用 recalculateNavigation 变更重新计算进行中的导航会话的路线。当驾驶员偏离原路线或途中情况发生变化时,此操作非常有用。
变更
重新计算路线需要导航会话的 id 和 current_location。您还可以包含 state_of_charge、via 或 telemetry 来优化新路线。id 可通过 startNavigation 变更获取。
参数
input· NavigationRecalculateInput· required字段
Boolean· Boolean操作可能会失败。请考虑以下错误场景以正确处理。有关错误的更多信息 here.
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.
此内容是否有帮助?