Back to Devexpress

AzureRouteCalculationResult.OptimizedWaypoints Property

wpf-devexpress-dot-xpf-dot-map-dot-azureroutecalculationresult-a12e8e84.md

latest2.3 KB
Original Source

AzureRouteCalculationResult.OptimizedWaypoints Property

Gets the list of the optimized waypoints sequence.

Namespace : DevExpress.Xpf.Map

Assembly : DevExpress.Xpf.Map.v25.2.dll

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public List<AzureRouteOptimizedWaypoint> OptimizedWaypoints { get; }
vb
Public ReadOnly Property OptimizedWaypoints As List(Of AzureRouteOptimizedWaypoint)

Property Value

TypeDescription
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

AzureRouteCalculationResult Class

AzureRouteCalculationResult Members

DevExpress.Xpf.Map Namespace