GMSNavigationType

GMSNavigationTypes

枚举

枚举GMSNavigationCameraMode { GMSNavigationCameraModeFree = 0、 GMSNavigationCameraModeFollowingGMSNavigationCameraModeOverview }
 相机模式,用于确定相机跟踪行为。更多...
枚举GMSNavigationCameraPerspective { GMSNavigationCameraPerspectiveTilted = 0、GMSNavigationCameraPerspectiveTopDownNorthUpGMSNavigationCameraPerspectiveTopDownHeadingUp }
 跟踪用户位置时可设置的不同镜头视角。更多...
枚举GMSNavigationTravelMode {
  GMSNavigationTravelModeDriving = 0、GMSNavigationTravelModeCyclingGMSNavigationTravelModeWalkingGMSNavigationTravelModeTwoWheeler
  GMSNavigationTravelModeTaxicab
}
 可用于导航的不同出行方式。更多...
枚举GMSNavigationVoiceGuidance { GMSNavigationVoiceGuidanceSilent = 0、GMSNavigationVoiceGuidanceAlertsOnlyGMSNavigationVoiceGuidanceAlertsAndGuidance }
 确定在特定情况下是否播放语音导航。更多...
枚举GMSVoiceGuidanceAudioDeviceType { GMSVoiceGuidanceAudioDeviceTypeBuiltInOnly = 0, GMSVoiceGuidanceAudioDeviceTypeBluetooth }
 确定播放语音导航的音频设备类型。更多...
枚举GMSRouteStatus {
  GMSRouteStatusInternalError = 0, GMSRouteStatusBuild, GMSRouteStatusNoRouteFound, GMSRouteStatusNetworkError,
  GMSRouteStatusQuotaExceeded, GMSRouteStatusAPIKeyNotAuthorized, GMSRouteStatusModeInternalError, GMSRouteStatusCanceledGMSRouteStatusDuplicateWaypointsErrorGMSRouteStatusNoWaypointsErrorGMSRouteStatusLocationUnavailableGMSRouteStatusWaypointErrorGMSRouteStatusTravelModeUnsupported
 GMSRouteStatus 是表示路线请求结果的状态代码。更多...
枚举GMSNavigationLightingMode { GMSNavigationLightingModeNormal = 0, GMSNavigationLightingModeLowLight }
 光照模式用于根据可用光线指定不同的配色方案。更多...
枚举GMSNavigationRoutingStrategy { GMSNavigationRoutingStrategyDefaultBest = 0、GMSNavigationRoutingStrategyShorterGMSNavigationRoutingStrategyDeltaToTargetDistance }
 路由策略指定路由的排名方式,这会影响路由在选中时和重新路由期间的排名。更多...
枚举GMSNavigationRouteCalloutFormat { GMSNavigationRouteCalloutFormatDefault = 0, GMSNavigationRouteCalloutFormatTime, GMSNavigationRouteCalloutFormatDistance }
 该格式用于指定是否在路线标注中显示距离或预计到达信息。更多...
枚举GMSNavigationAlternateRoutesStrategy { GMSNavigationAlternateRoutesStrategyAll = 0、GMSNavigationAlternateRoutesStrategyNoneGMSNavigationAlternateRoutesStrategyOne }
 指示可请求的备选路线的最大数量。更多...
枚举GMSNavigationSpeedAlertSeverity { GMSNavigationSpeedAlertSeverityUnknown = -2、GMSNavigationSpeedAlertSeverityNotSpeeding = -1、GMSNavigationSpeedAlertSeverityMinor = 0、GMSNavigationSpeedAlertSeverityMajor }
枚举GMSNavigationNavState { GMSNavigationNavStateUnknown = 0, GMSNavigationNavStateEnroute = 1, GMSNavigationNavStateRerouting = 2, GMSNavigationNavStateStopped = 3 }
 导航的状态。更多...
枚举GMSNavigationDrivingSide { GMSNavigationDrivingSideNone = 0, GMSNavigationDrivingSideLeft = 1, GMSNavigationDrivingSideRight = 2 }
 此路段位于右开车路线还是左开车路线上。更多...
枚举GMSNavigationManeuver

















GMSNavigationManeuverUnknownGMSNavigationManeuverDepartGMSNavigationManeuverDestinationGMSNavigationManeuverDestinationLeftGMSNavigationManeuverDestinationRightGMSNavigationManeuverStraightGMSNavigationManeuverTurnLeftGMSNavigationManeuverTurnRightGMSNavigationManeuverTurnKeepLeftGMSNavigationManeuverTurnKeepRightGMSNavigationManeuverTurnSlightLeftGMSNavigationManeuverTurnSlightRightGMSNavigationManeuverTurnSharpLeftGMSNavigationManeuverTurnSharpRightGMSNavigationManeuverTurnUTurnClockwiseGMSNavigationManeuverTurnUTurnCounterClockwiseGMSNavigationManeuverMergeUnspecifiedGMSNavigationManeuverMergeLeftGMSNavigationManeuverMergeRightGMSNavigationManeuverForkLeftGMSNavigationManeuverForkRightGMSNavigationManeuverOnRampUnspecifiedGMSNavigationManeuverOnRampLeftGMSNavigationManeuverOnRampRightGMSNavigationManeuverOnRampKeepLeftGMSNavigationManeuverOnRampKeepRightGMSNavigationManeuverOnRampSlightLeftGMSNavigationManeuverOnRampSlightRightGMSNavigationManeuverOnRampSharpLeftGMSNavigationManeuverOnRampSharpRightGMSNavigationManeuverOnRampUTurnClockwiseGMSNavigationManeuverOnRampUTurnCounterClockwiseGMSNavigationManeuverOffRampUnspecifiedGMSNavigationManeuverOffRampLeftGMSNavigationManeuverOffRampRightGMSNavigationManeuverOffRampKeepLeftGMSNavigationManeuverOffRampKeepRightGMSNavigationManeuverOffRampSlightLeftGMSNavigationManeuverOffRampSlightRightGMSNavigationManeuverOffRampSharpLeftGMSNavigationManeuverOffRampSharpRightGMSNavigationManeuverOffRampUTurnClockwiseGMSNavigationManeuverOffRampUTurnCounterClockwiseGMSNavigationManeuverRoundaboutClockwiseGMSNavigationManeuverRoundaboutCounterClockwiseGMSNavigationManeuverRoundaboutStraightClockwiseGMSNavigationManeuverRoundaboutStraightCounterClockwiseGMSNavigationManeuverRoundaboutLeftClockwiseGMSNavigationManeuverRoundaboutLeftCounterClockwiseGMSNavigationManeuverRoundaboutRightClockwiseGMSNavigationManeuverRoundaboutRightCounterClockwiseGMSNavigationManeuverRoundaboutSlightLeftClockwiseGMSNavigationManeuverRoundaboutSlightLeftCounterClockwiseGMSNavigationManeuverRoundaboutSlightRightClockwiseGMSNavigationManeuverRoundaboutSlightRightCounterClockwiseGMSNavigationManeuverRoundaboutSharpLeftClockwiseGMSNavigationManeuverRoundaboutSharpLeftCounterClockwiseGMSNavigationManeuverRoundaboutSharpRightClockwiseGMSNavigationManeuverRoundaboutSharpRightCounterClockwiseGMSNavigationManeuverRoundaboutUTurnClockwiseGMSNavigationManeuverRoundaboutUTurnCounterClockwiseGMSNavigationManeuverRoundaboutExitClockwiseGMSNavigationManeuverRoundaboutExitCounterClockwiseGMSNavigationManeuverFerryBoatGMSNavigationManeuverFerryTrainGMSNavigationManeuverNameChange
 一组用于指定要执行的导航操作的值。更多...
枚举GMSNavigationLaneShape {
  GMSNavigationLaneShapeUnknown = 0, GMSNavigationLaneShapeStraight = 1, GMSNavigationLaneShapeSlightLeft = 2, GMSNavigationLaneShapeSlightRight = 3,
  GMSNavigationLaneShapeNormalLeft

GMSNavigationLaneShapeNormalRightGMSNavigationLaneShapeSharpLeftGMSNavigationLaneShapeSharpRightGMSNavigationLaneShapeUTurnLeftGMSNavigationLaneShapeUTurnRight
 描述车道形状的一组值。更多...

枚举类型文档

相机模式,用于确定相机跟踪行为。

枚举器:
GMSNavigationCameraModeFree

停用相机跟踪。

当用户平移时,相机处于此模式。

GMSNavigationCameraModeFollowing

使用当前的 followingPerspective 跟踪用户位置。

GMSNavigationCameraModeOverview

显示剩余路线的概览。

这会在导航模式下动态更新。

跟踪用户位置时可设置的不同镜头视角。

枚举器:
GMSNavigationCameraPerspectiveTilted

摄像头自动旋转以面向用户的方位,并进行倾斜。

当导航处于非活动状态时,用户位置将位于视口的中心。当辅助线处于活动状态时,用户位置会定位在靠近视口底部的位置。

GMSNavigationCameraPerspectiveTopDownNorthUp

镜头始终朝向北方,并直接向下看。

用户位置信息位于屏幕中心。

GMSNavigationCameraPerspectiveTopDownHeadingUp

相机会自动旋转以面向用户的方位,并直接向下看。

当导航处于非活动状态时,用户位置将位于视口的中心。当辅助线处于活动状态时,用户位置会定位在靠近视口底部的位置。

可用于导航的不同出行方式。

枚举器:
GMSNavigationTravelModeDriving

系统将提取驾车路线,并基于移动方向报告用户路线。

GMSNavigationTravelModeCycling

系统将提取骑车路线,并基于设备面向的罗盘方向报告的用户路线。

GMSNavigationTravelModeWalking

系统将提取步行路线,并基于设备面向的罗盘方向报告的用户路线。

GMSNavigationTravelModeTwoWheeler

系统将提取双轮机动车路线,并基于移动方向报告用户路线。

GMSNavigationTravelModeTaxicab

系统将提取出租车路线,并基于行进方向报告的用户路线。

确定在特定情况下是否播放语音导航。

枚举器:
GMSNavigationVoiceGuidance 静默

停用语音导航。

GMSNavigationVoiceGuidanceAlertsOnly

仅针对路况提醒启用语音导航。

GMSNavigationVoiceGuidanceAlertsAndGuidance

启用语音导航,以便同时提供精细导航和提醒。

确定播放语音导航的音频设备类型。

枚举器:
GMSVoiceGuidanceAudioDeviceTypeBuiltInOnly

语音导航只能通过设备内置的扬声器或耳机播放。

GMSVoiceGuidanceAudioDeviceType 蓝牙

语音导航会通过蓝牙连接播放(如果可用),否则会使用设备内置的扬声器或耳机。

GMSRouteStatus 是表示路线请求结果的状态代码。

枚举器:
GMSRouteStatusInternalError

由于内部错误,无法计算路线。

在某些情况下,可以通过更新到较新的 SDK 版本来解决此问题。

GMSRouteStatusOK

已成功计算前往目的地的路线。

GMSRouteStatusNoRouteFound

无法计算前往目的地的路线。

GMSRouteStatusNetworkError

由于网络错误,无法计算前往目的地的路线。

GMSRouteStatusQuotaExceeded

由于配额不足,无法计算通往目标的路由。

GMSRouteStatusAPIKeyNotAuthorized

无法计算路线,因为提供的键没有使用 Navigation SDK 的权限。

GMSRouteStatusCanceled

已取消路线计算,取而代之的是较新的路线。

GMSRouteStatusDuplicateWaypointsError

无法计算路线,因为请求中存在重复的航点。

GMSRouteStatusNoWaypointsError

由于未提供任何航点,因此无法计算路线。

GMSRouteStatusLocationDisabled

由于无法获取用户的位置信息,因此无法计算路线。

这可能是因为用户未向应用授予位置信息权限。

GMSRouteStatusWaypointError

请求中提供的航点存在问题,因此无法生成路线。

例如,提供的地点 ID 可能已过时或无效。

GMSRouteStatusTravelMode 不支持

如果给定的出行方式不受支持,则无法生成路线。

例如,如果您使用路线令牌设置目的地,则仅支持驾车和 TwoWheeler 出行方式。

光照模式用于根据可用光线指定不同的配色方案。

枚举器:
GMSNavigationLightingModeNormal

使用适合日光观看的光照模式。

GMSNavigationLightingModeLowLight

使用适合夜间观看的照明模式。

路由策略指定路由的排名方式,这会影响路由在选中时和重新路由期间的排名。

默认值为 GMSNavigationRoutingStrategyDefaultBest。

枚举器:
GMSNavigationRoutingStrategyDefaultBest

按 NavSDK 默认费用模型对路由排名。

这是用于导航的默认路由策略。

GMSNavigationRoutingStrategyShorter

按距离对路线进行排名。

排名最高的路线是返回的那条路线中的最短路线。

GMSNavigationRoutingStrategyDeltaToTargetDistance

按绝对增量到目标距离对路线进行排名(从小到大)。

该格式用于指定是否在路线标注中显示距离或预计到达信息。

枚举器:
GMSNavigationRouteCalloutFormatDefault

根据路线策略显示时间或距离。

显示采用默认最佳路线策略的时间,以及采用较短路线策略时的距离。

GMSNavigationRouteCalloutFormatTime

在路线宣传信息中显示时间信息(例如,10 分钟,快 5 分钟)。

GMSNavigationRouteCalloutFormatDistance

在路线宣传信息中显示距离信息(例如,10 公里,长 5 公里)。

指示可请求的备选路线的最大数量。

枚举器:
GMSNavigationAlternateRoutesStrategyAll

应显示所有可用的备选路线。

GMSNavigationAlternateRoutesStrategyNone

不应显示备选路线。

GMSNavigationAlternatesStrategyOne

应显示一条备选路线。

枚举器:
GMSNavigationSpeedAlertSeverityUnknown

无法确定车速或限速。

GMSNavigationSpeedAlertSeverityNotSpeeding

目前没有超速行为。

GMSNavigationSpeedAlertSeverityMinor

小速度警报。

GMSNavigationSpeedAlertSeverityMajor

极速警报。

导航的状态。

枚举器:
GMSNavigationNavStateUnknown

错误或未指定状态。

GMSNavigationNavStateEnroute

正在主动导航。

提供了有关后续操作步骤的信息。

GMSNavigationNavStateRerouting

正在主动导航,但正在搜索新路线。

尚未提供后续操作步骤。

GMSNavigationNavStateStopped

导航已结束。

此路段位于右开车路线还是左开车路线上。

可能未指定。

枚举器:
GMSNavigationDrivingSideNone

未指定边。

GMSNavigationDrivingSideLeft

靠左行驶。

GMSNavigationDrivingSideRight

靠右侧开车。

一组用于指定要执行的导航操作的值。

枚举器:
GMSNavigationManeuverUnknown

动作不明。

GMSNavigationManeuverLeave

动作的起点。

GMSNavigationManeuverDestination

到达目的地。

GMSNavigationManeuverDestinationLeft

到达位于道路左侧的目的地。

GMSNavigationManeuverDestinationRight

到达位于道路右侧的目的地。

GMSNavigationManeuverStraight

继续直行。

GMSNavigationManeuverTurnLeft

动作的起点。

GMSNavigationManeuverTurnRight

在交叉路口经常右转。

GMSNavigationManeuverTurnKeepLeft

如果道路要转弯,请靠左行驶。

GMSNavigationManeuverTurnKeepRight

在不同的路段请保持右边。

GMSNavigationManeuverTurnSlightLeft

在交叉路口稍微向左转。

GMSNavigationManeuverTurnSlightRight

在交叉路口稍微向右转。

GMSNavigationManeuverTurnSharpLeft

在交叉路口向左转弯。

GMSNavigationManeuverTurnSharpRight

在交叉路口向右转弯。

GMSNavigationManeuverTurnUTurnClockwise

顺时针转动到街道的对面。

GMSNavigationManeuverTurnUTurnCounterClockwise

逆时针旋转到街道的对面。

GMSNavigationManeuverMergeUnspecified

当前道路与另一条道路合并。

GMSNavigationManeuverMergeLeft

当前道路与左侧另一条道路相交。

GMSNavigationManeuverMergeRight

当前道路与右侧另一条道路相交。

GMSNavigationManeuverForkLeft

当前道路与另一条道路稍微偏左。

GMSNavigationManeuverForkRight

当前道路与另一条道路相交处略微右侧。

GMSNavigationManeuverOnRampUnspecified

驶入收费公路或高速公路。

GMSNavigationManeuverOnRampLeft

经常左转进入收费公路或高速公路。

GMSNavigationManeuverOnRampRight

经常右转进入收费公路或高速公路。

GMSNavigationManeuverOnRampKeepLeft

进入收费公路或高速公路时,请留意道路左侧,因为这是分流。

GMSNavigationManeuverOnRampKeepRight

进入收费公路或高速公路时,请留意道路右侧。

GMSNavigationManeuverOnRampSlightLeft

稍微向左转弯,进入收费公路或高速公路。

GMSNavigationManeuverOnRampSlightRight

稍微向右转弯,进入收费公路或高速公路。

GMSNavigationManeuverOnRampSharpLeft

向左转弯,进入收费公路或高速公路。

GMSNavigationManeuverOnRampSharpRight

向右转弯,进入收费公路或高速公路。

GMSNavigationManeuverOnRampUTurnClockwise

顺时针旋转到街道对面,进入收费公路或高速公路。

GMSNavigationManeuverOnRampUTurnCounterClockwise

逆时针旋转到街道对面,进入收费公路或高速公路。

GMSNavigationManeuverOffRampUnspecified

从收费公路或高速公路出口出来。

GMSNavigationManeuverOffRampLeft

经常向左转,离开收费公路或高速公路。

GMSNavigationManeuverOffRampRight

经常右转离开收费公路或高速公路。

GMSNavigationManeuverOffRampKeepLeft

在驶出收费公路或高速公路时,请一直靠道路左侧,因为道路要转弯。

GMSNavigationManeuverOffRampKeepRight

在从收费公路或高速公路驶出时,请一直靠道路右侧,因为道路要转弯。

GMSNavigationManeuverOffRampSlightLeft

稍微向左转弯,离开收费公路或高速公路。

GMSNavigationManeuverOffRampSlightRight

稍微向右转弯,离开收费公路或高速公路。

GMSNavigationManeuverOffRampSharpLeft

向 左 转,离开收费公路或高速公路。

GMSNavigationManeuverOffRampSharpRight

向 右 转,离开收费公路或高速公路。

GMSNavigationManeuverOffRampUTurnClockwise

顺时针旋转到街道对面,即可离开收费公路或高速公路。

GMSNavigationManeuverOffRampUTurnCounterClockwise

逆时针旋转到街道对面,即可离开收费公路或高速公路。

GMSNavigationManeuverRoundaboutClockwise

按顺时针方向输入环岛。

GMSNavigationManeuverRoundaboutCounterClockwise

沿逆时针方向输入环岛。

GMSNavigationManeuverRoundaboutStraightClockwise

沿顺时针方向进入环岛,然后继续前行。

GMSNavigationManeuverRoundaboutStraightCounterClockwise

沿逆时针方向进入环岛,然后继续前行。

GMSNavigationManeuverRoundaboutLeftClockwise

沿顺时针方向进入环岛并左转。

GMSNavigationManeuverRoundaboutLeftCounterClockwise

沿逆时针方向进入环岛,然后左转。

GMSNavigationManeuverRoundaboutRightClockwise

沿顺时针方向进入环岛并右转。

GMSNavigationManeuverRoundaboutRightCounterClockwise

沿逆时针方向进入环岛,然后右转。

GMSNavigationManeuverRoundaboutSlightLeftClockwise

沿顺时针方向进入环岛,并稍微向左转。

GMSNavigationManeuverRoundaboutSlightLeftCounterClockwise

沿逆时针方向进入环岛,并稍微向左转。

GMSNavigationManeuverRoundaboutSlightRightClockwise

按顺时针方向进入环岛,并稍微向右转动。

GMSNavigationManeuverRoundaboutSlightRightCounterClockwise

沿逆时针方向进入环岛,并稍微向右转动。

GMSNavigationManeuverRoundaboutSharpLeftClockwise

沿顺时针方向进入环岛,然后向左急流转。

GMSNavigationManeuverRoundaboutSharpLeftCounterClockwise

沿逆时针方向进入环岛,然后向左急流转。

GMSNavigationManeuverRoundaboutSharpRightClockwise

沿顺时针方向进入环岛,然后向右急流转弯。

GMSNavigationManeuverRoundaboutSharpRightCounterClockwise

沿逆时针方向进入环岛,然后向右急流转弯。

GMSNavigationManeuverRoundaboutUTurnClockwise

按顺时针方向进入环岛,然后顺时针旋转到街道的对面。

GMSNavigationManeuverRoundaboutUTurnCounterClockwise

按逆时针方向进入环岛,然后逆时针旋转到街道的对面。

GMSNavigationManeuverRoundaboutExitClockwise

沿顺时针方向离开环岛。

GMSNavigationManeuverRoundaboutExitCounterClockwise

沿逆时针方向从环岛驶出。

GMSNavigationManeuverFerryBoat

乘轮渡。

GMSNavigationManeuverFerryTrain

搭乘火车。

GMSNavigationManeuverNameChange

街道名称发生变化。

描述车道形状的一组值。

枚举器:
GMSNavigationLaneShapeUnknown

车道形状未知。

GMSNavigationLaneShapeStraight

继续直行。

GMSNavigationLaneShapeSlightLeft

稍微向左转(10-45 度)。

GMSNavigationLaneShapeSlightRight

稍微向右转(10-45 度)。

GMSNavigationLaneShapeNormalLeft

正常左转(45-135 度)。

GMSNavigationLaneShapeNormalRight

正常右转(45-135 度)。

GMSNavigationLaneShapeSharpLeft

向左转(135-175 度)。

GMSNavigationLaneShapeSharpRight

向右转(135-175 度)。

GMSNavigationLaneShapeUTurnLeft

在同一街道的对面左转(175-180 度)。

GMSNavigationLaneShapeUTurnRight

在同一街道的对面右转(175-180 度)。