如何解决无法获得多个“之前”约束才能工作
我将 FindSequence API 与以下航点一起使用:
&destination1=Stop-20712;-33.878683,151.1377808;st:7200;before:destination3;before:destination4
&destination2=Stop-20714;-33.8021024,150.9552574;st:7200;before:destination3;before:destination4
&destination3=Stop-20710;-33.9486425,151.080674;st:7200
&destination4=Stop-20711;-33.8929182,151.0596753;st:7200
目标是始终将目的地 1 和目的地 2 作为第一个航点,但它似乎不起作用。结果如下:
"results": [
{
"waypoints": [
{
"id": "start-0","lat": -33.97943,"lng": 150.86694,"sequence": 0,"estimatedArrival": null,"estimatedDeparture": "2021-01-06T08:30:00+10:00","fulfilledConstraints": []
},{
"id": "Stop-20710","lat": -33.948643,"lng": 151.08067,"sequence": 1,"estimatedArrival": "2021-01-06T08:46:32+10:00","estimatedDeparture": "2021-01-06T10:46:32+10:00","fulfilledConstraints": [
"st:7200"
]
},{
"id": "Stop-20714","lat": -33.8021,"lng": 150.95526,"sequence": 2,"estimatedArrival": "2021-01-06T11:16:06+10:00","estimatedDeparture": "2021-01-06T13:16:06+10:00","fulfilledConstraints": [
"st:7200","before:destination4"
]
},
看来路点“Stop-20714”只考虑了一个before约束。我错过了什么吗?
谢谢
解决方法
我的错误,这里的支持让我直截了当。约束实际上应该以逗号分隔
&destination1=Stop-20712;-33.878683,151.1377808;st:7200;before:destination3,destination4
现在一切都好了。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。