Route Waypoint Optimization This sample shows how to calculate routes with and without waypoint optimization using the Azure Maps REST Route API.

Note: The optimized waypoint order information from the routing service provides a set of indices. These exclude the origin and destination indices. You need to increase all of these values by 1 to account for the origin and then add your destination to the end to get the complete ordered waypoint list.