1

我在某些请求中遇到了 waypoint_order 的问题,它与腿末端位置匹配,而其他时候则不匹配。这是我发送请求以及航路点和航段的方式。

    var request = {
            origin: start,
            destination: end,
            waypoints: waypts,
            optimizeWaypoints: true,
            travelMode: google.maps.DirectionsTravelMode.DRIVING,
            unitSystem: google.maps.UnitSystem.IMPERIAL
        };

正在通过的航点。

waypt[0] 1450 West Jackson Street Ozark Missouri ----order[0] 3

waypt[1] 2825 S Glenstone Ave Springfield Missouri ----order[1] 1

waypt[2] 404 West South Street Nixa Missouri ----order[2] 0

waypt[3] 500 West Chestnut Expressway Springfield Missouri ----order[3] 4

waypt[4] 715 W. Mt. Vernon Nixa Missouri ----order[4] 2

航点顺序:3,1,0,4,2

腿。

腿[0] 来自 1923 E Kearney St, Springfield, MO 65803, USA

腿 [0] 至 500 W Chestnut Expy, Springfield, MO 65806, USA

腿 [1] 来自 500 W Chestnut Expy, Springfield, MO 65806, USA

腿 [1] 至 2825 S Glenstone Ave, Springfield, MO 65804, USA

腿 [2] 来自 2825 S Glenstone Ave, Springfield, MO 65804, USA

腿[2] 至 1450 W Jackson St, Ozark, MO 65721, USA

腿[3] 从 1450 W Jackson St, Ozark, MO 65721, USA

腿 [3] 至 715 W Mt Vernon St, Nixa, MO 65714, USA

腿 [4] 来自 715 W Mt Vernon St, Nixa, MO 65714, USA

腿 [4] 至 404 W South St, Nixa, MO 65714, USA

腿 [5] 来自 404 W South St, Nixa, MO 65714, USA

腿 [5] 至 3315 S Campbell Ave, Springfield, MO 65807, USA

根据航段的航点顺序:[2,1,4,0​​,3]

有人知道为什么 result.routes[0].waypoint_order 中的 waypoint_order 会关闭吗?

4

0 回答 0