Package com.azure.maps.route.models
Class RouteSection
java.lang.Object
com.azure.maps.route.models.RouteSection
Route sections contain additional information about parts of a route. Each section contains at least the elements
`startPointIndex`, `endPointIndex`, and `sectionType`.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the delayInSeconds property: Delay in seconds caused by the incident.Get the delayMagnitude property: The magnitude of delay caused by the incident.Get the effectiveSpeedInKmh property: Effective speed of the incident in km/h, averaged over its entire length.Get the endPointIndex property: Index of the last point (offset 0) in the route this section applies to.Get the sectionType property: Section types of the reported route response.Get the simpleCategory property: Type of the incident.Get the startPointIndex property: Index of the first point (offset 0) in the route this section applies to.getTec()
Get the tec property: Details of the traffic event, using definitions in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard.Get the travelMode property: Travel mode for the calculated route.setTec
(RouteSectionTec tec) Set the tec property: Details of the traffic event, using definitions in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard.
-
Constructor Details
-
RouteSection
public RouteSection()
-
-
Method Details
-
getStartPointIndex
Get the startPointIndex property: Index of the first point (offset 0) in the route this section applies to.- Returns:
- the startPointIndex value.
-
getEndPointIndex
Get the endPointIndex property: Index of the last point (offset 0) in the route this section applies to.- Returns:
- the endPointIndex value.
-
getSectionType
Get the sectionType property: Section types of the reported route response.- Returns:
- the sectionType value.
-
getTravelMode
Get the travelMode property: 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.- Returns:
- the travelMode value.
-
getSimpleCategory
Get the simpleCategory property: Type of the incident. Can currently be JAM, ROAD_WORK, ROAD_CLOSURE, or OTHER. See "tec" for detailed information.- Returns:
- the simpleCategory value.
-
getEffectiveSpeedInKmh
Get the effectiveSpeedInKmh property: Effective speed of the incident in km/h, averaged over its entire length.- Returns:
- the effectiveSpeedInKmh value.
-
getDelayInSeconds
Get the delayInSeconds property: Delay in seconds caused by the incident.- Returns:
- the delayInSeconds value.
-
getDelayMagnitude
Get the delayMagnitude property: 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](https://docs.microsoft.com/rest/api/maps/traffic/gettrafficincidentdetail).- Returns:
- the delayMagnitude value.
-
getTec
Get the tec property: Details of the traffic event, using definitions in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard. Can contain effectCode and causes elements.- Returns:
- the tec value.
-
setTec
Set the tec property: Details of the traffic event, using definitions in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard. Can contain effectCode and causes elements.- Parameters:
tec
- the tec value to set.- Returns:
- the RouteSection object itself.
-