A newer version of this page is available. Switch to the current version.

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

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

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v19.2.dll

Declaration

public BingRouteLeg(
    GeoPoint startPoint,
    GeoPoint endPoint,
    List<BingItineraryItem> itinerary,
    double distance,
    TimeSpan time
)
Public Sub New(
    startPoint As GeoPoint,
    endPoint As GeoPoint,
    itinerary As List(Of BingItineraryItem),
    distance As Double,
    time As TimeSpan
)

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