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

Note: The service identifies waypoints using their original inputIndex and assigns each an optimizedIndex. This sample displays the original marker indices in optimized order, keeping the origin and destination fixed.