Bing 地图API Web 控制,选择了哪些方向?

Bing Maps API Web Control, Which directions are selected?

使用 bing 地图 API Web Control v8 的 DirectionsManager,如果显示多条路线,我如何知道选择了哪些方向?有没有我似乎找不到的活动?或者我可以从 directionsManager 对象中得到什么?

谢谢!

使用更新事件和 getCurrentRoute 函数:

Microsoft.Maps.Events.addHandler(directionsManager, 'directionsUpdated', function () {
    var currentRoute = directionsManager.getCurrentRoute();

    //This will be the currently displayed route. This will fire after a route calculation or when you select an alternate route option.
});