Skip to content

Commit 1f0e3b8

Browse files
committed
Multi-Itinerary Optimization sample description
1 parent 8687c4e commit 1f0e3b8

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎Samples/REST Services/MIO/mio.html‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link rel="shortcut icon" href="/favicon.ico" />
88

99
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
10-
<meta name="description" content="This sample shows how to do a Multi-Itinerary Optimization with Azure Maps." />
10+
<meta name="description" content="This sample shows how to do a Multi-Itinerary Optimization with Azure Maps and the NVIDIA cuOpt optimizer service." />
1111
<meta name="keywords" content="Microsoft maps, map, gis, API, SDK, spatial analysis, spatial join, fire, stop, route matrix, matrix, distance matrix, travel time, mio" />
1212
<meta name="author" content="Microsoft Azure Maps" />
1313
<meta name="version" content="2.0" />
@@ -157,7 +157,7 @@
157157
const solver = await getOptimizedRouteAsync(matrix);
158158

159159
// Render the route on the map for each vehicle
160-
renderRoute(allCoordinates, solver);
160+
renderRoutes(allCoordinates, solver);
161161

162162
// Hide loading icon
163163
showLoadingIcon(false);
@@ -297,8 +297,12 @@
297297
}
298298

299299
// Function to render the route on the map for each vehicle
300-
function renderRoute(allCoordinates, solver) {
300+
function renderRoutes(allCoordinates, solver) {
301+
302+
// Index for the route colors
301303
var index = 0;
304+
305+
// use the solver data to render the routes
302306
for (var vehicle in solver.vehicle_data) {
303307

304308
// Get the vehicle data.
@@ -352,7 +356,10 @@
352356

353357
<fieldset style="width:calc(100% - 30px);min-width:290px;margin-top:10px;">
354358
<legend>Multi-Itinerary Optimization</legend>
355-
This sample shows how to do a Multi-Itinerary Optimization with Azure Maps.
359+
This example demonstrates the process of optimizing multiple itineraries using Azure Maps in conjunction with
360+
<a href="https://www.nvidia.com/en-us/ai-data-science/products/cuopt/" target="_blank">NVIDIA's cuOpt</a> optimizer service.
361+
<br />
362+
The scenario outlined includes 8 delivery points, 4 transport units, with each of the 2 storage hubs providing 2 vehicles.
356363
</fieldset>
357364
</body>
358365
</html>
31.3 KB
Loading

0 commit comments

Comments
 (0)