GMSNavigationType

GMSNavigationTypes

列舉

列舉GMSNavigationCameraMode { GMSNavigationCameraModeFree = 0, GMSNavigationCameraModeFollowingGMSNavigationCameraModeOverview }
 決定攝影機以下行為的相機模式。更多...
列舉GMSNavigationCameraPerspective { GMSNavigationCameraPerspectiveTilted = 0, GMSNavigationCameraPerspectiveTopDownNorthUpGMSCameraPerspectiveTopDownHeadingUp }
 追蹤使用者位置時,您可以設定的不同相機視角。更多...
列舉GMSNavigationTravelMode {
  GMSNavigationTravelModeDriving = 0, GMSNavigationTravelModeCyclingGMSNavigationTravelModeWalkingGMSNavigationTravelModeTwoWheeler
  GMSNavigationTravelModeTaxicab
}
 可用於導航的不同交通方式。更多...
列舉GMSNavigationVoiceGuidance { GMSNavigationVoiceGuidanceSilent = 0, GMSNavigationVoiceGuidanceAlertsOnly, GMSNavigationVoiceGuidanceAlertsAndGuidance }
 決定是否要在特定情況下播放語音導引。更多...
列舉GMSVoiceGuidanceAudioDeviceType { GMSVoiceGuidanceAudioDeviceTypeBuiltInOnly = 0, GMSVoiceGuidanceAudioDeviceTypeBluetooth }
 決定要透過哪種音訊裝置播放語音導引。更多...
列舉GMSRouteStatus {
  GMSRouteStatusInternalError = 0, GMSRouteStatusOK, GMSRouteStatusNoRouteFound, GMSRouteStatusNetworkError,
  GMSRouteStatusQuotaExceeded, GMSRouteStatusAPIKeyNotAuthorizedGMSRouteStatusCanceledGMSRouteStatusDuplicateWaypointsErrorGMSRouteStatusNoWaypointsErrorGMSRouteStatusLocationUnavailableGMSRouteStatusWaypointErrorGMSRouteStatusTravelModeUnsupported
 GMSRouteStatus 是一個狀態碼,代表路線要求的結果。更多...
列舉GMSNavigationLightingMode { GMSNavigationLightingModeNormal = 0, GMSNavigationLightingModeLowLight }
 亮度模式可以根據可用光源指定不同的色彩配置。更多...
列舉GMSNavigationRoutingStrategy { GMSNavigationRoutingStrategyDefaultBest = 0, GMSNavigationRoutingStrategyShorterGMSNavigationRoutingStrategyDeltaToTargetDistance }
 路線規劃策略會指定路線的排序方式。當路線選擇和重新規劃路線時,這個策略就會影響路線。更多...
列舉GMSNavigationRouteCalloutFormat { GMSNavigationRouteCalloutFormatDefault = 0, GMSNavigationRouteCalloutFormatTime, GMSNavigationRouteCalloutFormatDistance }
 格式會指定是否在路線摘要中顯示距離或預計到達時間資訊。更多...
列舉GMSNavigationAlternateRoutesStrategy { GMSNavigationAlternativeRoutesStrategyAll = 0, GMSNavigationAlternateRoutesStrategyNoneGMSNavigationRoutesStrategyOne }
 指出可以要求的替代路線數量上限。更多...
列舉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 = 3,
  GMSNavigationLaneShapeNormalLeftGMSNavigationLaneShapeNormalRightGMSNavigationLaneShapeSharpLeftGMSNavigationLaneShapeSharpRightGMSNavigationLaneShapeUTurnLeftGMSNavigationLaneShapeUTurnRight
 一組值,用於說明車道形狀。更多...

列舉類型說明文件

決定攝影機以下行為的相機模式。

列舉器:
GMSNavigationCameraModeFree

停用攝影機追蹤功能。

使用者平移相機時,相機會進入此模式。

GMSNavigationCameraMode 追蹤

透過下列 Perspective 追蹤使用者位置。

GMSNavigationCameraModeOverview

顯示其餘路線的總覽。

這會在引導模式中動態更新。

追蹤使用者位置時,您可以設定的不同相機視角。

列舉器:
GMSNavigationCameraPerspectiveTilted

相機會自動旋轉到面向使用者方位並傾斜。

導航功能處於停用狀態時,使用者的位置會位於可視區域的中央。導航功能啟用時,使用者的位置會靠近可視區域底部。

GMSNavigationCameraPerspectiveTopDownNorthUp

相機始終朝北,朝向朝下。

使用者位置則位於畫面中央。

GMSNavigationCameraPerspectiveTopDownHeadingUp

相機會自動旋轉到面向使用者方位,並直接朝下。

導航功能處於停用狀態時,使用者的位置會位於可視區域的中央。導航功能啟用時,使用者的位置會靠近可視區域底部。

可用於導航的不同交通方式。

列舉器:
GMSNavigationTravelModeDriving

系統就會擷取行車路線,並列載報告的使用者課程,將依照移動方向。

GMSNavigationTravelModeCycling

系統就會擷取自行車路線,然後回報的使用者課程將以裝置朝向的指南針方向為基礎。

GMSNavigationTravelModeWalking

系統就會擷取步行路線,然後回報的使用者課程將以裝置朝向的指南針方向為基礎。

GMSNavigationTravelModeTwoWheeler

接著,系統就會擷取機車路線,回報的使用者班級將根據移動方向。

GMSNavigationTravelModeTaxicab

將擷取計程車路線,而報告的使用者課程將根據移動方向。

決定是否要在特定情況下播放語音導引。

列舉器:
GMSNavigationVoiceGuidanceSilent

停用語音導引。

GMSNavigationVoiceGuidanceAlertsOnly

僅針對路況快訊啟用語音導引。

GMSNavigationVoiceGuidanceAlertsAnd 指引

啟用即時路線導航和警示的語音導引功能。

決定要透過哪種音訊裝置播放語音導引。

列舉器:
GMSVoiceGuidanceAudioDeviceTypebuiltInOnly

語音導引只會透過內建裝置喇叭或耳機播放。

GMSVoiceGuidanceAudioDeviceTypeBluetooth

語音導引會透過藍牙連線 (如有) 播放,否則語音導引使用的是內建裝置喇叭或耳機。

GMSRouteStatus 是一個狀態碼,代表路線要求的結果。

列舉器:
GMSRouteStatusInternalError

發生內部錯誤,因此無法計算路徑。

在某些情況下,只要更新至較新的 SDK 版本就能解決這個問題。

GMSRouteStatusOK

已成功計算前往目的地的路線。

GMSRouteStatusNoRouteFound

無法計算前往目的地的路徑。

GMSRouteStatusNetworkError

網路發生錯誤,因此無法計算前往目的地的路徑。

GMSRouteStatusQuotaExceeded

配額不足,因此無法計算前往目的地的路徑。

GMSRouteStatusAPIKeyNotAuthorized

提供的金鑰沒有使用 Navigation SDK 的權限,因此無法計算路徑。

GMSRouteStatusCanceled

路線計算方式已取消,改用較新的路線。

GMSRouteStatusDuplicateWaypointsError

要求中出現重複的路線控點,因此無法計算路線。

GMSRouteStatusNoWaypointsError

未提供路線控點,因此無法計算路線。

GMSRouteStatusLocationUnavailable

無法取得使用者的所在位置,因此無法計算路線。

這可能是因為使用者未授予該應用程式位置存取權。

GMSRouteStatusWaypointError

要求中提供的路線控點有問題,因此無法產生路線。

例如,提供的地點 ID 過時或無效。

GMSRouteStatusTravelMode 不支援

設定不支援的交通方式時,無法產生路線。

舉例來說,如果使用路線符記設定目的地,則僅支援開車和 TwoWheeler 交通方式。

亮度模式可以根據可用光源指定不同的色彩配置。

列舉器:
GMSNavigationLightingModeNormal

使用適合日光觀看的光源模式。

GMSNavigationLightingModeLowLight

使用適合夜間觀看的光源模式。

路線規劃策略會指定路線的排序方式。當路線選擇和重新規劃路線時,這個策略就會影響路線。

預設值為 GMSNavigationRoutingStrategyDefaultBest。

列舉器:
GMSNavigationRoutingStrategyDefaultBest

依 NavSDK 預設費用模式為路徑排名。

這是導覽的預設轉送策略。

GMSNavigationRoutingStrategyShorter

依距離排名路線。

排名最高的路徑是傳回結果的最短路徑。

GMSNavigationRoutingStrategyDeltaToTargetDistance

按照絕對差異安排到目標距離 (從最小到大測試) 的路線排名。

格式會指定是否在路線摘要中顯示距離或預計到達時間資訊。

列舉器:
GMSNavigationRoute calloutFormatDefault

顯示時間或距離 (視轉送策略而定)。

使用預設最佳路線策略和距離策略較短的時間顯示時間。

GMSNavigationRoute calloutFormatTime

在路線摘要中顯示時間資訊 (例如10 分鐘,快 5 分鐘)。

GMSNavigationRoute calloutFormatDistance

在路線摘要中顯示距離資訊 (例如10 公里,長 5 公里)。

指出可以要求的替代路線數量上限。

列舉器:
GMSNavigationAlternativeRoutesStrategyAll

已顯示所有可用的替代路線。

GMSNavigationAlternativeRoutesStrategyNone

不應顯示替代路線。

GMSNavigationAlternativeRoutesStrategyOne

應顯示一條替代路線。

列舉器:
GMSNavigationSpeedAlertSeverityUnknown

無法判斷速度或速限。

GMSNavigationSpeedAlertSeverityNotSpeeding

沒有發生速度。

GMSNavigationSpeedAlertSeverityMinor

車速小警報。

GMSNavigationSpeedAlertSeverity 主要

重大速度警報,

導覽的狀態。

列舉器:
GMSNavigationNavStateUnknown

錯誤或未指定的狀態。

GMSNavigationNavStateEnroute

積極導航。

可使用即將到來的駕駛步驟相關資訊。

GMSNavigationNavStateRerouting

積極導航,但正在搜尋新路線。

即將提供接下來的駕駛步驟。

GMSNavigationNavStateStopped

導航已結束。

此步驟是在行車至右行駛的道路上。

可能未指定。

列舉器:
GMSNavigationDrivingSideNone

未指定的一側。

GMSNavigationDrivingSideLeft

將車子停在左側。

GMSNavigationDrivingSideRight

將車子放在右側。

一組值,用來指定要採取的導覽動作。

列舉器:
GMSNavigationManeuverUnknown

未知的動機。

GMSNavigationManeuverDepart

啟動點。

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 度)。