Back to Devexpress

AzureRouteOptions.OptimizeWaypoints Property

windowsforms-devexpress-dot-xtramap-dot-azurerouteoptions-0d1e6a28.md

latest1.7 KB
Original Source

AzureRouteOptions.OptimizeWaypoints Property

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

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
[DefaultValue(false)]
public bool OptimizeWaypoints { get; set; }
vb
<DefaultValue(False)>
Public Property OptimizeWaypoints As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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 = falseOptimizeWaypoints = true See Also

AzureRouteOptions Class

AzureRouteOptions Members

DevExpress.XtraMap Namespace