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