你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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[]

属性值