导航指令
使用 NavigationManeuver 标识 NavigationInfoModel.maneuver 中的当前路线指令。将导航服务提供的指令映射到对应枚举 case,再把其原始值传入导航快照。
以下图标用于说明指令语义,便于应用完成映射,并不规定连接设备实际渲染的图形。
导航指令参考
路线状态
路线层级状态,不表示具体的方向转向。
.none0x00当前没有可用的导航指令。
AIBudsNavigationManeuverNone.start0x01开始逐段导航。
AIBudsNavigationManeuverStart.straight0x02继续直行。
AIBudsNavigationManeuverStraight.arrive0x0B到达目的地。
AIBudsNavigationManeuverArrive转向
方向变化,包括轻微转向、普通转向、急转弯和掉头指令。
.slightLeft0x06向左前方行驶。
AIBudsNavigationManeuverSlightLeft.slightRight0x03向右前方行驶。
AIBudsNavigationManeuverSlightRight.left0x07左转。
AIBudsNavigationManeuverLeft.right0x04右转。
AIBudsNavigationManeuverRight.sharpLeft0x08向左急转。
AIBudsNavigationManeuverSharpLeft.sharpRight0x05向右急转。
AIBudsNavigationManeuverSharpRight.uTurnLeft0x09向左掉头。
AIBudsNavigationManeuverUTurnLeft.uTurnRight0x0A向右掉头。
AIBudsNavigationManeuverUTurnRight路线衔接与公共交通
车道衔接以及与步行或公共交通出行相关的路线步骤。
.mergeLeft0x0E向左并线。
AIBudsNavigationManeuverMergeLeft.mergeRight0x0F向右并线。
AIBudsNavigationManeuverMergeRight.stairsOrOverpass0x0C使用楼梯或天桥。
AIBudsNavigationManeuverStairsOrOverpass.stationPlatform0x0D前往车站或站台。
AIBudsNavigationManeuverStationPlatform.ferry0x1D乘渡轮继续行程。
AIBudsNavigationManeuverFerry.stopWait0x1F停止并等待后再继续。
AIBudsNavigationManeuverStopWait环岛
分别表示驶入、通过和驶出环岛。
.roundaboutEnterLeft0x11向左驶入环岛。
AIBudsNavigationManeuverRoundaboutEnterLeft.roundaboutEnterRight0x10向右驶入环岛。
AIBudsNavigationManeuverRoundaboutEnterRight.roundaboutPassLeft0x12沿左侧通过环岛。
AIBudsNavigationManeuverRoundaboutPassLeft.roundaboutPassRight0x13沿右侧通过环岛。
AIBudsNavigationManeuverRoundaboutPassRight.roundaboutExitLeft0x15向左驶出环岛。
AIBudsNavigationManeuverRoundaboutExitLeft.roundaboutExitRight0x14向右驶出环岛。
AIBudsNavigationManeuverRoundaboutExitRight高速公路与隧道
高速道路的驶入和驶出步骤,以及隧道边界。
.highwayEnter0x16驶入高速公路。
AIBudsNavigationManeuverHighwayEnter.highwayExitNextLeft0x18从下一个左侧出口驶出高速公路。
AIBudsNavigationManeuverHighwayExitNextLeft.highwayExitNextRight0x17从下一个右侧出口驶出高速公路。
AIBudsNavigationManeuverHighwayExitNextRight.highwayExitLeft0x1A从左侧出口驶出高速公路。
AIBudsNavigationManeuverHighwayExitLeft.highwayExitRight0x19从右侧出口驶出高速公路。
AIBudsNavigationManeuverHighwayExitRight.tunnelEnter0x1B驶入隧道。
AIBudsNavigationManeuverTunnelEnter.tunnelExit0x1C驶出隧道。
AIBudsNavigationManeuverTunnelExit原始值 0x1E 未在当前公开枚举中定义。
如需在设备更新中包含导航指令,请参阅发送导航信息。