Skip to main content
All docs
V25.1
  • AzureRouteCalculationResult.OptimizedWaypoints Property

    Gets the list of the optimized waypoints sequence.

    Namespace: DevExpress.XtraMap

    Assembly: DevExpress.XtraMap.v25.1.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