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

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

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.2.dll

Declaration

public BingRouteLeg(
    GeoPoint startPoint,
    GeoPoint endPoint,
    LocationInformation startLocation,
    LocationInformation endLocation,
    List<BingItineraryItem> itinerary,
    string description,
    double distance,
    TimeSpan time
)
Public Sub New(
    startPoint As GeoPoint,
    endPoint As GeoPoint,
    startLocation As LocationInformation,
    endLocation As LocationInformation,
    itinerary As List(Of BingItineraryItem),
    description As String,
    distance As Double,
    time As TimeSpan
)

Parameters

Name Type Description
startPoint GeoPoint

A GeoPoint object specifying the start point of the route. This value is assigned to the BingRouteLeg.StartPoint property.

endPoint GeoPoint

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

startLocation LocationInformation

A LocationInformation object specifying information about the start location. This value is assigned to the BingRouteLeg.StartLocation property.

endLocation LocationInformation

A LocationInformation object specifying information about the end location. This value is assigned to the BingRouteLeg.EndLocation property.

itinerary List<BingItineraryItem>

A list of BingItineraryItem objects specifying the list of itinerary items. This list is assigned to the BingRouteLeg.Itinerary property.

description String

A String specifying the description of the route. This value is assigned to the BingRouteLeg.Description property.

distance Double

A Double value specifying the distance between the start and end points. This value is assigned to the BingRouteLeg.Distance property.

time TimeSpan

A TimeSpan value specifying the time required to pass this itinerary item. This value is assigned to the BingRouteLeg.Time property.

See Also