跳到主要内容

导航指令

使用 NavigationManeuver 标识 NavigationInfoModel.maneuver 中的当前路线指令。将导航服务提供的指令映射到对应枚举 case,再把其原始值传入导航快照。

以下图标用于说明指令语义,便于应用完成映射,并不规定连接设备实际渲染的图形。

导航指令参考

路线状态

路线层级状态,不表示具体的方向转向。

4
.none0x00

当前没有可用的导航指令。

AIBudsNavigationManeuverNone
.start0x01

开始逐段导航。

AIBudsNavigationManeuverStart
.straight0x02

继续直行。

AIBudsNavigationManeuverStraight
.arrive0x0B

到达目的地。

AIBudsNavigationManeuverArrive

转向

方向变化,包括轻微转向、普通转向、急转弯和掉头指令。

8
.slightLeft0x06

向左前方行驶。

AIBudsNavigationManeuverSlightLeft
.slightRight0x03

向右前方行驶。

AIBudsNavigationManeuverSlightRight
.left0x07

左转。

AIBudsNavigationManeuverLeft
.right0x04

右转。

AIBudsNavigationManeuverRight
.sharpLeft0x08

向左急转。

AIBudsNavigationManeuverSharpLeft
.sharpRight0x05

向右急转。

AIBudsNavigationManeuverSharpRight
.uTurnLeft0x09

向左掉头。

AIBudsNavigationManeuverUTurnLeft
.uTurnRight0x0A

向右掉头。

AIBudsNavigationManeuverUTurnRight

路线衔接与公共交通

车道衔接以及与步行或公共交通出行相关的路线步骤。

6
.mergeLeft0x0E

向左并线。

AIBudsNavigationManeuverMergeLeft
.mergeRight0x0F

向右并线。

AIBudsNavigationManeuverMergeRight
.stairsOrOverpass0x0C

使用楼梯或天桥。

AIBudsNavigationManeuverStairsOrOverpass
.stationPlatform0x0D

前往车站或站台。

AIBudsNavigationManeuverStationPlatform
.ferry0x1D

乘渡轮继续行程。

AIBudsNavigationManeuverFerry
.stopWait0x1F

停止并等待后再继续。

AIBudsNavigationManeuverStopWait

环岛

分别表示驶入、通过和驶出环岛。

6
.roundaboutEnterLeft0x11

向左驶入环岛。

AIBudsNavigationManeuverRoundaboutEnterLeft
.roundaboutEnterRight0x10

向右驶入环岛。

AIBudsNavigationManeuverRoundaboutEnterRight
.roundaboutPassLeft0x12

沿左侧通过环岛。

AIBudsNavigationManeuverRoundaboutPassLeft
.roundaboutPassRight0x13

沿右侧通过环岛。

AIBudsNavigationManeuverRoundaboutPassRight
.roundaboutExitLeft0x15

向左驶出环岛。

AIBudsNavigationManeuverRoundaboutExitLeft
.roundaboutExitRight0x14

向右驶出环岛。

AIBudsNavigationManeuverRoundaboutExitRight

高速公路与隧道

高速道路的驶入和驶出步骤,以及隧道边界。

7
.highwayEnter0x16

驶入高速公路。

AIBudsNavigationManeuverHighwayEnter
.highwayExitNextLeft0x18

从下一个左侧出口驶出高速公路。

AIBudsNavigationManeuverHighwayExitNextLeft
.highwayExitNextRight0x17

从下一个右侧出口驶出高速公路。

AIBudsNavigationManeuverHighwayExitNextRight
.highwayExitLeft0x1A

从左侧出口驶出高速公路。

AIBudsNavigationManeuverHighwayExitLeft
.highwayExitRight0x19

从右侧出口驶出高速公路。

AIBudsNavigationManeuverHighwayExitRight
.tunnelEnter0x1B

驶入隧道。

AIBudsNavigationManeuverTunnelEnter
.tunnelExit0x1C

驶出隧道。

AIBudsNavigationManeuverTunnelExit

原始值 0x1E 未在当前公开枚举中定义。

如需在设备更新中包含导航指令,请参阅发送导航信息