GMSNavigationStepInfo 類別參考資料
總覽
導航路線上單一步驟的相關資訊。
資源 | |
GMSNavigationManeuver | 營運 |
這個步驟的 GMSNavigationManeuver 。 | |
NSString * | fullRoadName |
這個步驟的完整道路名稱,內含道路的所有資訊,包括方向。 | |
NSString * | simpleRoadName |
簡化版的道路名稱。 | |
NSString * | fullInstructionText |
這個步驟操作說明全文。 | |
NSString * | exitNumber |
這個步驟的結束編號 (如果有的話)。 | |
GMSNavigationDrivingSide | drivingSide |
此步驟是於向右行駛或開車時行駛。 | |
NSInteger | roundaboutTurnNumber |
相對於輸入圓環位置的離開事件計數。 | |
NSInteger | stepNumber |
路線中所有步驟清單中的步驟索引。 | |
CLLocationDistance | distanceFromPrevStepMeters |
這個步驟的總距離。 | |
NSTimeInterval | timeFromPrevStepSeconds |
預估完成這個步驟所需的時間。 |
屬性說明文件
- (GMSNavigationManeuver) maneuver [read, assign] |
這個步驟的 GMSNavigationManeuver
。
- (NSString*) fullRoadName [read, assign] |
這個步驟的完整道路名稱,內含道路的所有資訊,包括方向。
範例 (每一行都是不同的範例):
瘦大道
CA-85 / Mtn View
9A 號出口 / 北第一街
- (NSString*) simpleRoadName [read, assign] |
簡化版的道路名稱。
比完整路名還短,而且可能無法包含道路的所有識別資訊,例如出口方向或名稱。
範例 (每一行都是不同的範例):
瘦大道
CA-85
9A 號出口
- (NSString*) fullInstructionText [read, assign] |
這個步驟操作說明全文。
範例 (每一行都是不同的範例):
向左轉到《Lean Ave》。
靠右上車道,上 CA-85 交流道前往 Mtn View。
從右側車道 2 號下交流道,朝 9A 號出口朝北第一街前進。
- (NSString*) exitNumber [read, assign] |
這個步驟的結束編號 (如果有的話)。
- (GMSNavigationDrivingSide) drivingSide [read, assign] |
此步驟是於向右行駛或開車時行駛。
- (NSInteger) roundaboutTurnNumber [read, assign] |
相對於輸入圓環位置的離開事件計數。
僅適用於圓環,否則為 -1。
- (NSInteger) stepNumber [read, assign] |
路線中所有步驟清單中的步驟索引。
第一個步驟的步數為 0。
- (CLLocationDistance) distanceFromPrevStepMeters [read, assign] |
這個步驟的總距離。
這個值不會改變。
- (NSTimeInterval) timeFromPrevStepSeconds [read, assign] |
預估完成這個步驟所需的時間。
這個值不會改變。