Back to Devexpress

BingTrafficIncidentDataProvider Class

windowsforms-devexpress-dot-xtramap-4dbe1e5d.md

latest3.4 KB
Original Source

BingTrafficIncidentDataProvider Class

OBSOLETE

This class is obsolete. Microsoft deprecated Bing Maps on June 30th, 2025. For alternative providers, see https://www.devexpress.com/bing-maps-winforms

Allows you to receive information about traffic incidents within a specified area from the Bing Maps service and display incident icons on the map.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
[Obsolete("This class is obsolete. Microsoft deprecated Bing Maps on June 30th, 2025. For alternative providers, see https://www.devexpress.com/bing-maps-winforms")]
[PreferableMember("BingTrafficIncidentDataProvider", "", "")]
public class BingTrafficIncidentDataProvider :
    BingMapDataProviderBase
vb
<Obsolete("This class is obsolete. Microsoft deprecated Bing Maps on June 30th, 2025. For alternative providers, see https://www.devexpress.com/bing-maps-winforms")>
<PreferableMember("BingTrafficIncidentDataProvider", "", "")>
Public Class BingTrafficIncidentDataProvider
    Inherits BingMapDataProviderBase

Remarks

Follow the steps below to create a map with traffic incidents:

To include traffic location codes in the method’s result, enable the BingTrafficIncidentDataProvider.Options.IncludeLocationCodes property.

After you obtain a list of incidents, the provider raises the TrafficIncidentCalculated event. You can handle the event to access the collection of received incidents or add custom logic.

Implements

ISupportWebRequest

Inheritance

Object InformationDataProviderBase WebInformationDataProvider BingMapDataProviderBase BingTrafficIncidentDataProvider

See Also

BingTrafficIncidentDataProvider Members

GIS Data

DevExpress.XtraMap Namespace