Skip to main content
All docs
V25.1
  • AzureRouteOptions.OptimizeWaypoints Property

    Specifies whether the service rearranges route waypoints to reduce route cost.

    Namespace: DevExpress.XtraMap

    Assembly: DevExpress.XtraMap.v25.1.dll

    NuGet Package: DevExpress.Win.Map

    Declaration

    [DefaultValue(false)]
    public bool OptimizeWaypoints { get; set; }

    Property Value

    Type Default Description
    Boolean false

    true if waypoints are rearranged; otherwise, false.

    Remarks

    Enable the OptimizeWaypoints property to rearrange waypoints passed to the AzureRouteDataProvider.CalculateRoute method to create an optimized route.

    The following images depict non-optimized and optimized routes for six waypoints (“San Francisco”, “Las Vegas”, “San Jose”, “Chico”, “Los Angeles”, “Oakland”):

    OptimizeWaypoints = false
    A non-optimized route.
    OptimizeWaypoints = true
    An optimized route.
    See Also