Mutation
开始导航
使用 startNavigation mutation 在现有路线之上开始新的导航会话。当驾驶员开始沿已计算的路线行驶时,这会很有用。
Mutation
开始导航会话需要提供 route_id、route_details_id 和 current_location。两个路线 ID 都可以通过 getRoute 查询获取。该 mutation 返回导航会话 id,可用于获取、更新或结束该会话。
参数
字段
操作可能会失败。请考虑以下错误场景以正确处理。有关错误的更多信息 这里。
matched_routes_not_supported- Navigation is not supported for matched routes.
navigation_location_too_far- Current location is too far away from the route origin. Please plan another route from current location.
navigation_soc_below_allowed- State of charge is bellow allowed by the route state of charge. Please plan another route from current location.
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.
route_alternative_not_found- No route alternative was found with the provided ID.
route_not_found- No route was found with the provided ID.
此内容是否有帮助?