MapsRoutingModelFactory.RouteSection Method

Definition

Initializes a new instance of RouteSection.

public static Azure.Maps.Routing.Models.RouteSection RouteSection (int? startPointIndex = default, int? endPointIndex = default, Azure.Maps.Routing.Models.ResponseSectionType? sectionType = default, Azure.Maps.Routing.Models.ResponseTravelMode? travelMode = default, Azure.Maps.Routing.Models.TrafficIncidentCategory? simpleCategory = default, int? effectiveSpeedInKmh = default, int? delayInSeconds = default, Azure.Maps.Routing.Models.DelayMagnitude? delayMagnitude = default, Azure.Maps.Routing.Models.RouteSectionTec tec = default);
static member RouteSection : Nullable<int> * Nullable<int> * Nullable<Azure.Maps.Routing.Models.ResponseSectionType> * Nullable<Azure.Maps.Routing.Models.ResponseTravelMode> * Nullable<Azure.Maps.Routing.Models.TrafficIncidentCategory> * Nullable<int> * Nullable<int> * Nullable<Azure.Maps.Routing.Models.DelayMagnitude> * Azure.Maps.Routing.Models.RouteSectionTec -> Azure.Maps.Routing.Models.RouteSection
Public Shared Function RouteSection (Optional startPointIndex As Nullable(Of Integer) = Nothing, Optional endPointIndex As Nullable(Of Integer) = Nothing, Optional sectionType As Nullable(Of ResponseSectionType) = Nothing, Optional travelMode As Nullable(Of ResponseTravelMode) = Nothing, Optional simpleCategory As Nullable(Of TrafficIncidentCategory) = Nothing, Optional effectiveSpeedInKmh As Nullable(Of Integer) = Nothing, Optional delayInSeconds As Nullable(Of Integer) = Nothing, Optional delayMagnitude As Nullable(Of DelayMagnitude) = Nothing, Optional tec As RouteSectionTec = Nothing) As RouteSection

Parameters

startPointIndex
Nullable<Int32>

Index of the first point (offset 0) in the route this section applies to.

endPointIndex
Nullable<Int32>

Index of the last point (offset 0) in the route this section applies to.

sectionType
Nullable<ResponseSectionType>

Section types of the reported route response.

travelMode
Nullable<ResponseTravelMode>

Travel mode for the calculated route. The value will be set to other if the requested mode of transport is not possible in this section.

simpleCategory
Nullable<TrafficIncidentCategory>

Type of the incident. Can currently be JAM, ROAD_WORK, ROAD_CLOSURE, or OTHER. See "tec" for detailed information.

effectiveSpeedInKmh
Nullable<Int32>

Effective speed of the incident in km/h, averaged over its entire length.

delayInSeconds
Nullable<Int32>

Delay in seconds caused by the incident.

delayMagnitude
Nullable<DelayMagnitude>

The magnitude of delay caused by the incident. These values correspond to the values of the response field ty of the Get Traffic Incident Detail API.

tec
RouteSectionTec

Details of the traffic event, using definitions in the TPEG2-TEC standard. Can contain effectCode and causes elements.

Returns

A new RouteSection instance for mocking.

Applies to