sdk-routing / com.tomtom.online.sdk.routing.data.longDistanceEV.response / NativeSection

NativeSection

open class NativeSection : Serializable

Represents information about the route section.

Constructors

<init>

NativeSection()
NativeSection(startPointIndex: Int!, endPointIndex: Int!, travelMode: NativeTravelMode!, sectionType: NativeSectionType!, countryCode: String!, simpleCategory: NativeSectionSimpleCategory!, effectiveSpeedInKmh: Int!, delay: Seconds!, magnitudeOfDelay: Int!, tec: NativeTec!)

Functions

getCountryCode

open fun getCountryCode(): Optional<String!>!

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

getDelay

open fun getDelay(): Optional<Seconds!>!

Returns the delay in seconds caused by the incident.

getEffectiveSpeedInKmh

open fun getEffectiveSpeedInKmh(): Optional<Int!>!

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

getEndPointIndex

open fun getEndPointIndex(): Optional<Int!>!

Returns the index of the last point in the route this section applies to.

getMagnitudeOfDelay

open fun getMagnitudeOfDelay(): Optional<Int!>!

Returns the magnitude of delay caused by the incident.

getSectionType

open fun getSectionType(): Optional<NativeSectionType!>!

Returns the response section type.

getSimpleCategory

open fun getSimpleCategory(): Optional<NativeSectionSimpleCategory!>!

Returns the type of the incident.

getStartPointIndex

open fun getStartPointIndex(): Optional<Int!>!

Returns the index of the first point in the route this section applies to.

getTec

open fun getTec(): Optional<NativeTec!>!

Returns the details of the traffic event.

getTravelMode

open fun getTravelMode(): Optional<NativeTravelMode!>!

Returns the requested travel mode.

toString

open fun toString(): String