HapiNote

data class HapiNote(value: String, key: HafasRemarkCode?, type: HafasRemarkType?, priority: Int, routeIdxFrom: Int?, routeIdxTo: Int?, txtN: String?, txtL: String?, txtS: String?)

Contains a text with notes to be displayed for this leg, like attributes or footnotes.

Constructors

HapiNote
Link copied to clipboard
fun HapiNote(value: String, key: HafasRemarkCode? = null, type: HafasRemarkType?, priority: Int = 100, routeIdxFrom: Int?, routeIdxTo: Int?, txtN: String?, txtL: String?, txtS: String?)

Properties

key
Link copied to clipboard
val key: HafasRemarkCode? = null

An identifier of this note. The identifier is a two letter combination further identifying the content of the note.

priority
Link copied to clipboard
val priority: Int = 100

The priority of this note. A lower priority value means a higher importance.

routeIdxFrom
Link copied to clipboard
val routeIdxFrom: Int?

First stop/station where this note is valid. See the Stops list in the JourneyDetail response for this leg to get more details about this stop/station.

routeIdxTo
Link copied to clipboard
val routeIdxTo: Int?

Last stop/station where this note is valid. See the Stops list in the JourneyDetail response for this leg to get more details about this stop/station.

txtL
Link copied to clipboard
val txtL: String?

Long version of this notes text

txtN
Link copied to clipboard
val txtN: String?

Normal version of this notes text

txtS
Link copied to clipboard
val txtS: String?

Short version of this notes text

type
Link copied to clipboard
val type: HafasRemarkType?

The type of this note.

value
Link copied to clipboard
val value: String

Note to be displayed