sdk-routing / com.tomtom.online.sdk.routing.ev.route / Section

Section

@Beta(2020, 10) class Section

Represents information about the route section.

Parameters

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

endPointIndex - Gets the index of the last point (offset 0) in the route 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.

delayInSeconds - 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.

Constructors

<init>

Section(startPointIndex: Int?, endPointIndex: Int?, travelMode: TravelMode, sectionType: SectionType, countryCode: String?, simpleCategory: SimpleCategory, effectiveSpeedInKmh: Int?, delayInSeconds: Int?, magnitudeOfDelay: Int?, tec: Tec?)

Represents information about the route section.

Properties

countryCode

val countryCode: String?

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

delayInSeconds

val delayInSeconds: 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 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 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.

Functions

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int