RouteDirectionsOutput interface
此对象是从成功的路线方向调用返回的
属性
| format |
Format Version 属性 |
| optimized |
优化了路点序列。 它显示用户提供的针对原始列表和优化列表的路点序列的索引。 例如,响应:
表示原始序列为 [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[]