共用方式為


RouteDirectionsOutput interface

此物件會從成功的路由方向呼叫傳回

屬性

formatVersion

Format Version 屬性

optimizedWaypoints

優化的方式點序列。 它會顯示使用者針對原始和優化清單提供之導航點序列的索引。 例如,回應:

<optimizedWaypoints>
<waypoint providedIndex="0" optimizedIndex="1"/>
<waypoint providedIndex="1" optimizedIndex="2"/>
<waypoint providedIndex="2" optimizedIndex="0"/>
</optimizedWaypoints>

表示原始序列為 [0, 1, 2] 且優化序列為 [1, 2, 0]。 由於索引從 0 開始,原始為 “first, second, third” ,而優化則為 “second, third, first” 。

report

報告目前呼叫中使用的有效設定。

routes

路由陣列

屬性詳細資料

formatVersion

Format Version 屬性

formatVersion?: string

屬性值

string

optimizedWaypoints

優化的方式點序列。 它會顯示使用者針對原始和優化清單提供之導航點序列的索引。 例如,回應:

<optimizedWaypoints>
<waypoint providedIndex="0" optimizedIndex="1"/>
<waypoint providedIndex="1" optimizedIndex="2"/>
<waypoint providedIndex="2" optimizedIndex="0"/>
</optimizedWaypoints>

表示原始序列為 [0, 1, 2] 且優化序列為 [1, 2, 0]。 由於索引從 0 開始,原始為 “first, second, third” ,而優化則為 “second, third, first” 。

optimizedWaypoints?: RouteOptimizedWaypointOutput[]

屬性值

report

報告目前呼叫中使用的有效設定。

report?: RouteReportOutput

屬性值

routes

路由陣列

routes: RouteOutput[]

屬性值