sdk-routing / com.tomtom.online.sdk.routing.route.information / RouteSection

RouteSection

@PublicPreview("2021.06") data class RouteSection : Serializable

Represents information about the route section.

Parameters

startPointIndex - Gets the index of the first point (offset 0) in the route that this section applies to (only included for routeRepresentation polyline).

endPointIndex - Gets the index of the last point (offset 0) in the route that this section applies to (only included for routeRepresentation polyline).

travelMode - Gets the requested travel mode.

sectionType - Gets the response section type.

countryCode - Gets the 3-character ISO 3166-1 alpha-3 country code.

simpleCategory - Gets the type of the incident.

effectiveSpeedInKmh - Gets the effective speed of the incident in km/h, averaged over its entire length.

delay - Gets the delay in seconds caused by the incident.

magnitudeOfDelay - Gets the magnitude of delay caused by the incident.

tec - Gets the details of the traffic event.

Properties

countryCode

val countryCode: String?

Gets the 3-character ISO 3166-1 alpha-3 country code.

delay

val delay: Int

Gets the delay in seconds caused by the incident.

effectiveSpeedInKmh

val effectiveSpeedInKmh: Int

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

endPointIndex

val endPointIndex: Int

Gets the index of the last point (offset 0) in the route that this section applies to (only included for routeRepresentation polyline).

magnitudeOfDelay

val magnitudeOfDelay: Int

Gets the magnitude of delay caused by the incident.

sectionType

val sectionType: SectionType

Gets the response section type.

simpleCategory

val simpleCategory: SimpleCategory

Gets the type of the incident.

startPointIndex

val startPointIndex: Int

Gets the index of the first point (offset 0) in the route that this section applies to (only included for routeRepresentation polyline).

tec

val tec: Tec?

Gets the details of the traffic event.

travelMode

val travelMode: TravelMode

Gets the requested travel mode.