GMSNavigationType

GMSNavigationTypes

列舉

列舉GMSNavigationCameraMode { GMSNavigationCameraModeFree = 0, GMSNavigationCameraModeFollowingGMSNavigationCameraModeOverview }
 相機模式決定相機遵循的行為。更多...
列舉GMSNavigationCameraPerspective { GMSNavigationCameraPerspectiveTilted = 0, GMSNavigationCameraPerspectiveTopDownNorthUpGMSNavigationCameraPerspectiveTopDownHeadingUp }
 可在使用者追蹤使用者的位置時,設定不同的相機視角。更多...
列舉GMSNavigationTravelMode {
  GMSNavigationTravelModeDriving = 0,GMSNavigationTravelModeCyclingGMSNavigationTravelModeWalkingGMSNavigationTravelModeTwoWheeler
  GMSNavigationTravelModeTaxicab
Navigation}
 可用於導航的各種交通方式。更多...
列舉GMSNavigationVoiceGuidance { GMSNavigationVoiceGuidanceSilent = 0, GMSNavigationVoiceGuidanceAlertsOnlyGMSNavigationVoiceGuidanceAlertsAndGuidance }
 決定是否要在特定情況下播放語音導引。更多...
列舉GMSVoiceGuidanceAudioDeviceType { GMSVoiceGuidanceAudioDeviceTypeBuiltInOnly = 0, GMSVoiceGuidanceAudioDeviceTypeBluetooth }
 決定語音導引可用的音訊裝置類型。更多...
列舉GMSRouteStatus {
  GMSRouteStatusInternalError = 0, GMSRouteStatusOK, GMSRouteStatusNoRouteFound, GMSRouteStatusNetworkError,
  GMSRouteStatusQuotaExceeded, GMSRouteStatusAPIKeyNotAuthorizedGMSRouteStatusCanceledGMSRouteStatusDuplicateWaypointsErrorGMSRouteStatusNoWaypointsErrorGMSRouteStatusLocationUnavailableGMSRouteStatusWaypointErrorGMSRouteStatusTravelModeUnsupported
 GMSRouteStatus 是一個狀態碼,代表路線要求的結果。更多...
列舉GMSNavigationLightingMode { GMSNavigationLightingModeNormal = 0,GMSNavigationLightingModeLowLight }
 亮度模式可用於根據可用的光源指定不同的色彩配置。更多...
列舉GMSNavigationRoutingStrategy { GMSNavigationRoutingStrategyDefaultBest = 0,GMSNavigationRoutingStrategyShorterGMSNavigationRoutingStrategyDeltaToTargetDistance }
 轉送策略會指定路徑的排序方式,會影響在選擇路線和重新轉送期間的路線。更多...
列舉GMSNavigationRouteCalloutFormat { GMSNavigationRouteCalloutFormatDefault = 0, GMSNavigationRouteCalloutFormatTimeGMSNavigationRouteCalloutFormatDistance }
 這種格式會指定是否在路線摘要中顯示距離或預計到達時間資訊。更多...
列舉GMSNavigationAlternateRoutesStrategy { GMSNavigation 替代 RoutesStrategyAll = 0, GMSNavigationAlternateRoutesStrategyNoneGMSNavigation 替代 RoutesStrategyOne }
 用於指出可要求的替代路線數量上限。更多...
列舉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

停用攝影機追蹤。

使用者平移相機時,相機處於這個模式。

GMSNavigationCameraMode 跟進

緊接使用者位置與目前的 Perspective。

GMSNavigationCameraModeOverview

顯示剩餘路徑的總覽。

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

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

列舉:
GMSNavigationCameraPerspectiveTilted

鏡頭會自動旋轉,朝著使用者站立且傾斜。

導航功能停用時,使用者位置會位於可視區域中央。啟用導航功能時,使用者的位置會顯示在可視區域底部附近。

GMSNavigationCameraPerspectiveTopDownNorthUp

攝影機一律朝向北方,且高度直接朝下。

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

GMSNavigationCameraPerspectiveTopDowningUp

相機會自動旋轉至面向使用者,並且直視螢幕。

導航功能停用時,使用者位置會位於可視區域中央。啟用導航功能時,使用者的位置會顯示在可視區域底部附近。

可用於導航的各種交通方式。

列舉:
GMSNavigationTravelModeDriving

系統會擷取行車路線,並根據運動方向回報使用者課程。

GMSNavigationTravelModeCycling

系統會擷取單車路線,並根據裝置面對的指南針方向,回報使用者課程資訊。

GMSNavigationTravelModeWalking

系統會擷取步行路線,並依據裝置面對的指南針方向,回報使用者課程資訊。

GMSNavigationTravelModeTwoWheeler

系統會擷取機車路線,並根據移動方向回報使用者課程。

GMSNavigationTravelModeTaxicab

系統會擷取計程車路線,並根據行進方向回報使用者課程。

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

列舉:
GMSNavigationVoiceGuidanceSilent

停用語音導引。

GMSNavigationVoiceGuidanceAlertsOnly

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

GMSNavigationVoiceGuidanceAlertsAndGuidance

開啟即時路線指引和快訊的語音導引。

決定語音導引可用的音訊裝置類型。

列舉:
GMSVoiceGuidanceAudioDeviceTypeBuiltInOnly

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

GMSVoiceGuidanceAudioDeviceTypeBluetooth

語音導引功能會使用藍牙連線播放 (如果有的話),否則系統會使用裝置內建的喇叭或耳機。

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

列舉:
GMSRouteStatusInternalError

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

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

GMSRouteStatusOK

成功計算前往目的地的路線,

GMSRouteStatusNoRouteFound

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

GMSRouteStatusNetworkError

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

GMSRouteStatusQuotaExceeded

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

GMSRouteStatusAPIKeyNotAuthorized

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

GMSRouteStatus 已取消

路線計算已取消,並改用新的路線。

GMSRouteStatusDuplicateWaypointsError

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

GMSRouteStatusNoWaypointsError

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

GMSRouteStatusLocationUnavailable

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

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

GMSRouteStatusWaypointError

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

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

GMSRouteStatusTravelMode 不支援

如果使用不支援的交通方式,就無法產生路徑。

舉例來說,如果您使用路線權杖設定目的地,則系統僅支援駕駛和 TwoWheeler 的交通方式。

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

列舉:
GMSNavigationLightingModeNormal

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

GMSNavigationLightingModeLOWLight

使用適合夜間使用的燈光模式。

轉送策略會指定路徑的排序方式,會影響在選擇路線和重新轉送期間的路線。

預設值為 GMSNavigationRoutingStrategyDefaultBest。

列舉:
GMSNavigationRoutingStrategyDefaultBest

依 NavSDK 預設費用模型排列路徑。

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

GMSNavigationRouteStrategyShorter

依距離排名路線。

排名最高的路線是傳回的最短路線。

GMSNavigationRouteStrategyDeltaToTargetDistance

依絕對差異將路線排名 (從最小到最大)。

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

列舉:
GMSNavigationRoute calloutFormatDefault

根據路線策略顯示時間或距離。

顯示採用預設最佳路線規劃策略和距離,以及較短路線規劃策略的時間。

GMSNavigationRoute calloutFormatTime

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

GMSNavigationRoute calloutFormatDistance

在路線呼叫中顯示距離資訊 (例如10 公里,至少 5 公里)。

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

列舉:
GMSNavigation 替代 RoutesStrategyAll

系統會顯示所有可用的替代路線。

GMSNavigation 替代 RoutesStrategyNone

不應顯示替代路線。

GMSNavigation 替代 RoutesStrategyOne

應顯示一條替代路線。

列舉:
GMSNavigationSpeedAlertSeverityUnknown

無法判斷速度或速限。

GMSNavigationSpeedAlertSeverityNotSpeeding

無法加快速度。

GMSNavigationSpeedAlertSeverityMinor

低速警報。

GMSNavigationSpeedAlertSeverityMajor

重大速度警報。

導覽的狀態。

列舉:
GMSNavigationNavStateUnknown

錯誤或未指定狀態。

GMSNavigationNavStateEnroute

主動導航。

可提供即將進行的操作步驟相關資訊。

GMSNavigationNavStateRerouting

主動導航,但搜尋新路線。

目前尚無法使用下一個操作步驟。

GMSNavigationNavStateStopped

導航已結束。

此步驟是於向右行駛或開車時行駛。

可能不明。

列舉:
GMSNavigationDrivingSideNone

未指定的一面。

GMSNavigationDrivingSideLeft

朝左方行駛。

GMSNavigationDrivingSideRight

右側為駕駛。

一組值,用於指定要執行的導覽動作。

列舉:
GMSNavigationManeuverUnknown

角色不明。

GMSNavigationManeuverDepart

駕駛作業的起點。

GMSNavigationManeuverDestination

抵達目的地。

GMSNavigationManeuverDestinationLeft

抵達位於道路左側的目的地。

GMSNavigationManeuverDestinationRight

抵達位於道路右側的目的地。

GMSNavigationManeuverStraight

繼續直行。

GMSNavigationManeuverTurnLeft

駕駛作業的起點。

GMSNavigationManeuverTurnRight

位於十字路口的正常右轉。

GMSNavigationManeuverTurnKeepLeft

這條路會在路段繞行時保持左側。

GMSNavigationManeuverTurnKeepRight

路面壅塞時向右移動。

GMSNavigationManeuverTurnSlightLeft

在十字路口向左轉。

GMSNavigationManeuverTurnSlightRight

在十字路口向 右 轉。

GMSNavigationManeuverTurnSharpLeft

在十字路口向左轉。

GMSNavigationManeuverTurnSharpRight

在十字路口向右轉。

GMSNavigationManeuverTurnUTurnClockwise

順時針轉到街道的另一側。

GMSNavigationManeuverTurnUTurnClockwise

逆時針旋轉至街道的另一側。

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

順時針方向進入圓環,然後繼續直立。

GMSNavigationManeuverRoundaboutStraight 時間點對應時針

按逆時針方向輸入圓環,然後繼續直線。

GMSNavigationManeuverRoundaboutLeftClockwise

依順時針方向輸入圓環,然後向左轉。

GMSNavigationManeuverRoundaboutLeftCounterClockwise

依逆時針方向輸入圓環,然後向左轉。

GMSNavigationManeuverRoundaboutRightClockwise

依順時針方向輸入圓環,然後向右轉。

GMSNavigationManeuverRoundaboutRightCounterClockwise

依逆時針方向輸入圓環,然後向右轉。

GMSNavigationManeuverRoundaboutSlightLeftClockwise

依順時針方向輸入圓環,然後稍微向左轉。

GMSNavigationManeuverRoundaboutSlightLeftCounterClockwise

依逆時針方向輸入圓環,然後稍微向左轉。

GMSNavigationManeuverRoundaboutSlightRightClockwise

依順時針方向輸入圓環,然後稍微向左轉。

GMSNavigationManeuverRoundaboutSlightRightCounterClockwise

依逆時針方向輸入圓環,然後稍微向右轉。

GMSNavigationManeuverRoundaboutSharpLeftClockwise

依順時針方向輸入圓環,然後向左轉。

GMSNavigationManeuverRoundaboutSharpLeftCounterClockwise

依逆時針方向輸入圓環,然後向左轉。

GMSNavigationManeuverRoundaboutSharpRightClockwise

依順時針方向輸入圓環,然後向右急轉。

GMSNavigationManeuverRoundaboutSharpRightCounterClockwise

依逆時針方向輸入圓環,然後向右急轉。

GMSNavigationManeuverRoundaboutUTurnClockwise

依順時針方向輸入圓環,然後順時針轉到街道另一側。

GMSNavigationManeuverRoundaboutUTurnClockwise

依逆時針方向輸入圓環,然後順時針轉到街道另一側。

GMSNavigationManeuverRoundaboutExitClockwise

依順時針方向離開圓環。

GMSNavigationManeuverRoundaboutExitCounterClockwise

往逆時針方向結束圓環。

GMSNavigationManeuverFerry Boat

搭乘渡輪。

GMSNavigationManeuverFerryTrain

搭乘火車。

GMSNavigationManeuverNameChange

街道名稱隨即變更。