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, GMS2.dfp6,GMSRouteStatusNoRouteFound, GMSRouteStatusNetworkError,
  GMSRouteStatusQuotaExceeded, GMSRouteStatusAPIKeyNotAuthorized GMSRouteStatusAPIKeyNotAuthorized 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
 一组用于指定要执行的导航操作的值。更多...

枚举类型文档

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

枚举器
GMSNavigationCameraModeFree

停用相机跟随功能。

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

GMSNavigationCameraModeFollowing

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

GMSNavigationCameraModeOverview

显示剩余路线的概览。

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

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

枚举器
GMSNavigationCameraPerspectiveTilted

相机会自动旋转以朝向用户方位,并发生倾斜。

当导航处于非活动状态时,用户位置将位于视口的中心。当导航处于活动状态时,用户位置将放置在视口底部附近。

GMSNavigationCameraPerspectiveTopDownNorthUp

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

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

GMSNavigationCameraPerspectiveTopDownHeadingUp

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

当导航处于非活动状态时,用户位置将位于视口的中心。当导航处于活动状态时,用户位置将放置在视口底部附近。

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

枚举器
GMSNavigationTravelModeDriving

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

GMSNavigationTravelModeCycling

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

GMSNavigationTravelModeWalking

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

GMSNavigationTravelModeTwoWheeler

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

GMSNavigationTravelModeTaxicab

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

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

枚举器
GMS 导航语音导航静音

停用语音导航。

GMSNavigationVoiceGuidanceAlertsOnly

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

GMSNavigationVoiceGuidanceAlertsAndGuidance

启用语音导航,以便使用精细导航和提醒。

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

枚举器
GMSVoiceGuidanceAudioDeviceTypeBuiltInOnly

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

GMSVoiceGuidanceAudioDeviceType 蓝牙

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

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

枚举器
GMSRouteStatusInternalError

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

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

GMSRouteStatusOK

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

GMSRouteStatusNoRouteFound

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

GMSRouteStatusNetworkError

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

GMSRouteStatusQuotaExceeded

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

GMSRouteStatusAPIKeyNotAuthorized

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

GMSRouteStatusCanceled

已取消路线计算,改为使用新计算。

GMSRouteStatusDuplicateWaypointsError

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

GMSRouteStatusNoWaypointsError

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

GMSRouteStatusLocationInvalid

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

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

GMSRouteStatusWaypointError

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

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

GMSRouteStatusTravelModeUnsupported

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

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

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

枚举器
GMSNavigationLightingModeNormal

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

GMSNavigationLightingModeLowLight

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

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

默认值为 GMSNavigationrouteStrategyDefaultBest。

枚举器
GMSNavigation 沟通 StrategyDefaultBest

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

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

GMSNavigationDirectionsStrategyShorter

按距离对路线排名。

排名最高的路由是返回的最短路由。

GMSNavigationDirectionsStrategyDeltaToTargetDistance

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

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

枚举器
GMSNavigationRouteCalloutFormatDefault

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

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

GMSNavigationRouteCalloutFormatTime

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

GMSNavigationRouteCalloutFormatDistance

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

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

枚举器
GMSNavigationAlternateRoutesStrategyAll

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

GMSNavigationAlternateRoutesStrategyNone

不应显示备选路线。

GMSNavigationAlternateRoutesStrategyOne

应显示一条备选路线。

枚举器
GMSNavigationSpeedAlertSeverityUnknown

无法确定速度或速度限制。

GMSNavigationSpeedAlertSeverityNotSpeeding

没有出现超速的情况。

GMSNavigationSpeedAlertSeverityMinor

低速提醒。

GMSNavigationSpeedAlertSeverityMajor

极速警报。

导航的状态。

枚举器
GMSNavigationNavStateUnknown

错误或未指定状态。

GMSNavigationNavStateEnroute

正在主动导航。

提供了有关即将执行的操纵步骤的信息。

GMSNavigationNavStateRerouting

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

后续的操纵步骤尚不可用。

GMSNavigationNavStateStopped

导航已结束。

此路段位于右侧驾车路线或左驾车路线。

可以未指定。

枚举器
GMSNavigationDrivingSideNone

未指定边。

GMSNavigationDrivingSideLeft

靠左行驶。

GMSNavigationDrivingSideRight

驶到右侧。

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

枚举器
GMSNavigationManeuverUnknown

动作不明。

GMSNavigationManeuver 起飞

动作的起点。

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

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

GMSNavigationManeuverOnRampU TurnClockwise

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

GMSNavigationManeuverOnRampUTurnCounterClockwise

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

GMSNavigationManeuverOffRampUnspecified

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

GMSNavigationManeuverOffRampLeft

从收费公路或高速公路旁正常左转。

GMSNavigationManeuverOffRampRight

正常右转驶出收费公路或高速公路。

GMSNavigationManeuverOffRampKeepLeft

从收费公路或高速公路旁,如果因为公路要分叉,请靠道路的左侧行驶。

GMSNavigationManeuverOffRampKeepRight

在从收费公路或高速公路驶出,如果因为公路要分叉,请保持道路右侧。

GMSNavigationManeuverOffRampSlightLeft

稍微向左转弯,驶出收费公路或高速公路。

GMSNavigationManeuverOffRampSlightRight

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

GMSNavigationManeuverOffRampSharpLeft

向左转弯驶出收费公路或高速公路。

GMSNavigationManeuverOffRampSharpRight

向右转弯,驶出收费公路或高速公路。

GMSNavigationManeuverOffRampU TurnClockwise

顺时针在街道的对面驶出收费公路或高速公路。

GMSNavigationManeuverOffRampUTurnCounterClockwise

逆时针转动到街道的对面,从收费公路或高速公路出口驶出。

GMSNavigationManeuverRoundaboutClockwise

按顺时针方向输入一个环岛。

GMSNavigationManeuverRoundaboutCounterClockwise

进入逆时针方向的环岛。

GMSNavigationManeuverRoundaboutStraightClockwise

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

GMSNavigationManeuverRoundaboutStraightCounterClockwise

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

GMSNavigationManeuverRoundaboutLeftClockwise

进入顺时针方向的环岛,然后左转。

GMSNavigationManeuverRoundaboutLeftCounterClockwise

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

GMSNavigationManeuverRoundaboutRightClockwise

进入顺时针方向的环岛,然后右转。

GMSNavigationManeuverRoundaboutRightCounterClockwise

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

GMSNavigationManeuverRoundaboutSlightLeftClockwise

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

GMSNavigationManeuverRoundaboutSlightLeftCounterClockwise

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

GMSNavigationManeuverRoundaboutSlightRightClockwise

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

GMSNavigationManeuverRoundaboutSlightRightCounterClockwise

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

GMSNavigationManeuverRoundaboutSharpLeftClockwise

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

GMSNavigationManeuverRoundaboutSharpLeftCounterClockwise

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

GMSNavigationManeuverRoundaboutSharpRightClockwise

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

GMSNavigationManeuverRoundaboutSharpRightCounterClockwise

进入逆时针方向的环岛,然后急速向右。

GMSNavigationManeuverRoundaboutU TurnClockwise

按顺时针方向进入环岛,然后顺时针转到街道的另一侧。

GMSNavigationManeuverRoundaboutUTurnCounterClockwise

按逆时针方向进入环岛,逆时针旋转至街道对面。

GMSNavigationManeuverRoundaboutExitClockwise

顺时针方向离开环岛。

GMSNavigationManeuverRoundaboutExitCounterClockwise

逆时针方向从环岛驶出。

GMSNavigationManeuverFerryBoat

乘坐小船。

GMSNavigationManeuverFerryTrain

搭乘火车轮渡。

GMSNavigationManeuverNameChange

街道名称发生变化。