windowsforms-devexpress-dot-xtramap-dot-azureroutecalculationresult-98b3876a.md
Gets the list of the optimized waypoints sequence.
Namespace : DevExpress.XtraMap
Assembly : DevExpress.XtraMap.v25.2.dll
NuGet Package : DevExpress.Win.Map
public List<AzureRouteOptimizedWaypoint> OptimizedWaypoints { get; }
Public ReadOnly Property OptimizedWaypoints As List(Of AzureRouteOptimizedWaypoint)
| Type | Description |
|---|---|
| List<AzureRouteOptimizedWaypoint> |
A collection of the optimized waypoints sequence.
|
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
AzureRouteCalculationResult Class