Skip to main content

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

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