Skip to main content
A newer version of this page is available. .

BingItineraryItemWarning.Type Property

Gets the type of the warning.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v21.2.dll

NuGet Package: DevExpress.Wpf.Map

Declaration

public BingItineraryWarningType Type { get; }

Property Value

Type Description
BingItineraryWarningType

A BingItineraryWarningType enumeration value specifying the warning type.

Available values:

Show 36 items
Name Description
Accident

There is a car accident.

AdminDivisionChange

The route has left one administrative division and entered another.

BlockedRoad

The road is blocked.

CheckTimetable

Check a time table. This usually refers to a ferry time table.

Congestion

The traffic is slow.

CountryChange

The route has left one country and entered another.

DisabledVehicle

There is a disabled vehicle.

GateAccess

A gate blocks the road and access is required to continue along the route.

GetOffTransit

Get off the transit at this location.

GetOnTransit

Get on the transit at this location.

IllegalUTurn

A U-turn is illegal at this location.

MassTransit

Use mass transit at this location.

Miscellaneous

A miscellaneous warning is available for this location.

NoIncident

There is no incident at this location.

None

There is no warning at this location.

Other

There is a warning at this location that can not be classified as any other type of warning.

OtherNews

There is news about this location.

OtherTrafficIncidents

There are other traffic incidents at this location.

PlannedEvents

There are planned events in the region.

PrivateRoad

The road being travelled on is private.

RestrictedTurn

The turn is restricted depending on the time of day.

RoadClosures

There are road closures at this location.

RoadHazard

There is a road hazard.

ScheduledConstruction

There is scheduled construction.

SeasonalClosures

A seasonal closure occurs at this location.

Tollbooth

A toll is required at this location to continue along the route.

TollRoad

The road being travelled on is a toll road.

TrafficFlow

The warning is a traffic warning.

UnpavedRoad

The road being travelled on is unpaved.

TollZoneEnter

The entrance to a toll zone.

TollZoneExit

The exit from a toll zone.

TransitLineChange

There is a transit line change.

UnscheduledConstruction

There is construction at this location.

Weather

There is significant weather at this location.

PlannedEvent

There are scheduled events that may disrupt the route.

TimeRestriction

There is a time restriction.

Example

View Example

Private Function ProcessWarnings(ByVal warnings As List(Of BingItineraryItemWarning)) As String
    If warnings Is Nothing Then
        Return ""
    End If

    Dim sb As New StringBuilder(ControlChars.Tab & ControlChars.Tab & "Warnings:" & ControlChars.Lf)
    For i As Integer = 0 To warnings.Count - 1
        sb.Append(String.Format(ControlChars.Tab & ControlChars.Tab & ControlChars.Tab & "Warning {0}:" & ControlChars.Lf, i + 1))
        sb.Append(String.Format(ControlChars.Tab & ControlChars.Tab & ControlChars.Tab & "Type: {0}" & ControlChars.Lf, warnings(i).Type))
        sb.Append(String.Format(ControlChars.Tab & ControlChars.Tab & ControlChars.Tab & "Text: {0}" & ControlChars.Lf, warnings(i).Text))

    Next i
    Return sb.ToString()
End Function

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Type property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also