This article describes how to optimize a route stop order. Route optimization creates the most efficient route given a set of stop points.
This is sometimes called traveling salesperson routing.
Turn on route optimization by setting the SOAP object parameter RouteOptions.optimizeStops = true
At least four points must be created for route optimization. Only the mid-points are optimized.