Back to Devexpress

BingRouteOptions.AvoidRoads Property

windowsforms-devexpress-dot-xtramap-dot-bingrouteoptions.md

latest2.1 KB
Original Source

BingRouteOptions.AvoidRoads Property

Gets or sets an option that allows limitation of the use of the toll or highway roads.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
[DefaultValue(BingAvoidRoads.None)]
public BingAvoidRoads AvoidRoads { get; set; }
vb
<DefaultValue(BingAvoidRoads.None)>
Public Property AvoidRoads As BingAvoidRoads

Property Value

TypeDefaultDescription
BingAvoidRoadsNone

A BingAvoidRoads enumeration value.

|

Available values:

NameDescription
None

All road types can be used to build a route.

| | Highways |

Highways are not used to build a route.

| | Tolls |

Toll roads are not used to build a route.

| | MinimizeHighways |

The number of highways is minimized in a route.

| | MinimizeTolls |

The number of toll roads is minimized in a route.

| | Ferry |

Do not use ferries to build a route.

| | BorderCrossing |

Do not cross country borders in a route.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AvoidRoads
BingRouteDataProvider

.RouteOptions .AvoidRoads

|

See Also

Migrate from Bing Maps to Azure Maps Providers

BingRouteOptions Class

BingRouteOptions Members

DevExpress.XtraMap Namespace