Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AzureRouteCalculationResult.OptimizedWaypoints Property

Gets the list of the optimized waypoints sequence.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

NuGet Package: DevExpress.Win.Map

#Declaration

public List<AzureRouteOptimizedWaypoint> OptimizedWaypoints { get; }

#Property Value

Type Description
List<AzureRouteOptimizedWaypoint>

A collection of the optimized waypoints sequence.

#Remarks

Each AzureRouteOptimizedWaypoint in a collection contains information about waypoint index sequence in the original list (specified by the user) and optimized list (calculated by the Azure Route service).

The Azure Route service can rearrange waypoints passed to the AzureRouteDataProvider.CalculateRoute method to create an optimized route. For this, specify the computeBestOrder route definition as a parameter in AzureRouteOptions.CustomParameters.

For example, a response can contain the following list:

<optimizedWaypoints>
<waypoint providedIndex="0" optimizedIndex="1"/>
<waypoint providedIndex="1" optimizedIndex="2"/>
<waypoint providedIndex="2" optimizedIndex="0"/>
</optimizedWaypoints>

The original sequence of waypoints is [0, 1, 2] and the optimized sequence is [1, 2, 0].

See Also