Mutation
更新导航
使用 updateNavigation mutation 更新进行中的导航会话。当您想在驾驶员沿路线前进时上报其位置时,这会很有用。
Mutation
更新导航会话需要提供其 id 和 location_data。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_heading_invalid- Heading should be a value between 0 and 360.
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.
此内容是否有帮助?