ols-router
ols-router copied to clipboard
In optimalRoutes and optimalDirections resources, if not a round-trip request, anchor last route point so it stays last in the optimal route.
Currently, when a request for an optimal route is made with isRoundTrip=false, the application user is not expecting their destination to change. To support this, keep the last route point last (and the first route point first) when searching for the optimal ordering of route points.
Another use case from BC Mail Plus: Anchor first x locations and beginning/end location so that the driver can deliver to priority locations first to ensure their delivery commitments are made.