Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BingRouteLeg(GeoPoint, GeoPoint, List<BingItineraryItem>, Double, TimeSpan) Constructor

In This Article

Initializes a new instance of the BingRouteLeg class with the specified parameters.

Namespace: DevExpress.Xpf.Map

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

NuGet Package: DevExpress.Wpf.Map

#Declaration

public BingRouteLeg(
    GeoPoint startPoint,
    GeoPoint endPoint,
    List<BingItineraryItem> itinerary,
    double distance,
    TimeSpan time
)

#Parameters

Name Type Description
startPoint GeoPoint

A GeoPoint object specifying the starting point. This value is assigned to the BingRouteLeg.StartPoint property.

endPoint GeoPoint

A GeoPoint object specifying the end point. This value is assigned to the BingRouteLeg.EndPoint property.

itinerary List<BingItineraryItem>

A list of BingItineraryItem objects containing information on the route leg. This value is assigned to the BingRouteLeg.Itinerary property.

distance Double

A Double value specifying the distance of this route leg. This value is assigned to the BingRouteLeg.Distance property.

time TimeSpan

A TimeSpan object specifying the time required to traverse this route leg. This value is assigned to the BingRouteLeg.Time property.

See Also