在我的应用程序中,用户可以在他们想要访问的城市中选择多个目的地。计算具有不同开始和结束位置的最佳路线
目前我使用它来确定beween LocationA和LocationD的最佳途径,同时确保去的最佳途径采取在LocationB和LocationC https://developers.google.com/maps/documentation/javascript/examples/directions-waypoints
目前LocationA固定到原点, LocationD固定在目的地的这个012ServiceService.route部分
我想检查是否有比从LocationA到LocationD更好的路由。也许LocationD到LocationC在路途中更快取入LocationA和LocationB。
有没有办法做到这一点,而不固定旅程的开始和结束?