HapiStop

data class HapiStop(name: String, id: String, extId: String, routeIdx: Int?, lon: Double?, lat: Double?, arrPrognosisType: HafasPrognosisType?, depPrognosisType: HafasPrognosisType?, depTime: LocalTime?, depDate: LocalDate?, depTz: ZoneOffset, scheduledDepTimeChanged: Boolean, arrTime: LocalTime?, arrDate: LocalDate?, arrTz: ZoneOffset, scheduledArrTimeChanged: Boolean, passingTime: LocalTime?, passingDate: LocalDate?, passingTz: ZoneOffset, arrTrack: String?, depTrack: String?, rtDepTime: LocalTime?, rtDepDate: LocalDate?, rtDepTz: ZoneOffset, rtArrTime: LocalTime?, rtArrDate: LocalDate?, rtArrTz: ZoneOffset, rtArrTrack: String?, rtDepTrack: String?, rtPassingTime: LocalTime?, rtPassingDate: LocalDate?, rtPassingTz: ZoneOffset, cancelled: Boolean, cancelledDeparture: Boolean, cancelledArrival: Boolean, hasMainMast: Boolean?, mainMastId: String?, mainMastExtId: String?, alighting: Boolean?, boarding: Boolean?, rtAlighting: Boolean?, rtBoarding: Boolean?, additional: Boolean, isBorderStop: Boolean, depDir: String?, entry: Boolean?, Notes: List<HapiNote>, altId: List<String>, mainMastAltId: List<String>, Occupancy: List<HapiOccupancy>)

The element Stop contains the name of the stop/station, the route index, the latitude, the longitude, the departure time and date, the arrival time and date, the track, the realtime departure time and date, the realtime arrival time and date and the realtime track.

Constructors

HapiStop
Link copied to clipboard
fun HapiStop(name: String, id: String, extId: String, routeIdx: Int?, lon: Double?, lat: Double?, arrPrognosisType: HafasPrognosisType? = null, depPrognosisType: HafasPrognosisType? = null, depTime: LocalTime?, depDate: LocalDate?, depTz: ZoneOffset = ZoneOffset(0.0), scheduledDepTimeChanged: Boolean = false, arrTime: LocalTime?, arrDate: LocalDate?, arrTz: ZoneOffset = ZoneOffset(0.0), scheduledArrTimeChanged: Boolean = false, passingTime: LocalTime?, passingDate: LocalDate?, passingTz: ZoneOffset = ZoneOffset(0.0), arrTrack: String?, depTrack: String?, rtDepTime: LocalTime?, rtDepDate: LocalDate?, rtDepTz: ZoneOffset = ZoneOffset(0.0), rtArrTime: LocalTime?, rtArrDate: LocalDate?, rtArrTz: ZoneOffset = ZoneOffset(0.0), rtArrTrack: String?, rtDepTrack: String?, rtPassingTime: LocalTime?, rtPassingDate: LocalDate?, rtPassingTz: ZoneOffset = ZoneOffset(0.0), cancelled: Boolean = false, cancelledDeparture: Boolean = false, cancelledArrival: Boolean = false, hasMainMast: Boolean?, mainMastId: String?, mainMastExtId: String?, alighting: Boolean?, boarding: Boolean?, rtAlighting: Boolean?, rtBoarding: Boolean?, additional: Boolean = false, isBorderStop: Boolean = false, depDir: String?, entry: Boolean?, Notes: List<HapiNote> = emptyList(), altId: List<String> = emptyList(), mainMastAltId: List<String> = emptyList(), Occupancy: List<HapiOccupancy> = emptyList())

Properties

additional
Link copied to clipboard
val additional: Boolean = false

Will be true if this stop is an additional stop

alighting
Link copied to clipboard
val alighting: Boolean?

True if alighting is allowed by scheduled data

altId
Link copied to clipboard
val altId: List<String>
arrDate
Link copied to clipboard
val arrDate: LocalDate?

Arrival date in format YYYY-MM-DD, if available.

arrPrognosisType
Link copied to clipboard
val arrPrognosisType: HafasPrognosisType? = null

Prognosis type of arrival date and time.

arrTime
Link copied to clipboard
val arrTime: LocalTime?

Arrival time in format hh:mm:ss, if available.

arrTrack
Link copied to clipboard
val arrTrack: String?

Arrival track information, if available.

arrTz
Link copied to clipboard
val arrTz: ZoneOffset

Arrival time zone information in the format +/- minutes

boarding
Link copied to clipboard
val boarding: Boolean?

True if boarding is allowed by scheduled data

cancelled
Link copied to clipboard
val cancelled: Boolean = false

Will be true if arrival or departure or both at this stop is cancelled

cancelledArrival
Link copied to clipboard
val cancelledArrival: Boolean = false

Will be true if arrival at this stop is cancelled

cancelledDeparture
Link copied to clipboard
val cancelledDeparture: Boolean = false

Will be true if departure at this stop is cancelled

depDate
Link copied to clipboard
val depDate: LocalDate?

Departure date in format YYYY-MM-DD, if available.

depDir
Link copied to clipboard
val depDir: String?

Direction information.

depPrognosisType
Link copied to clipboard
val depPrognosisType: HafasPrognosisType? = null

Prognosis type of departure date and time.

depTime
Link copied to clipboard
val depTime: LocalTime?

Departure time in format hh:mm:ss, if available.

depTrack
Link copied to clipboard
val depTrack: String?

Departure track information, if available.

depTz
Link copied to clipboard
val depTz: ZoneOffset

Departure time zone information in the format +/- minutes

entry
Link copied to clipboard
val entry: Boolean?

True, if the stop is an entry point.

extId
Link copied to clipboard
val extId: String

Contains the external ID of the stop/station.

hasMainMast
Link copied to clipboard
val hasMainMast: Boolean?

True if this stop belongs to a main mast.

id
Link copied to clipboard
val id: String

Contains the ID of the stop/station.

isBorderStop
Link copied to clipboard
val isBorderStop: Boolean = false

Will be true if this stop is a border stop

lat
Link copied to clipboard
val lat: Double?

The WGS84 latitude of the geographical position of the stop/station

lon
Link copied to clipboard
val lon: Double?

The WGS84 longitude of the geographical position of the stop/station.

mainMastAltId
Link copied to clipboard
val mainMastAltId: List<String>
mainMastExtId
Link copied to clipboard
val mainMastExtId: String?

External ID of the main mast this stop belongs to.

mainMastId
Link copied to clipboard
val mainMastId: String?

ID of the main mast this stop belongs to.

name
Link copied to clipboard
val name: String

Contains the name of the stop/station.

Notes
Link copied to clipboard
val Notes: List<HapiNote>

Contains a list of notes to be displayed for this location, like attributes or footnotes.

Occupancy
Link copied to clipboard
val Occupancy: List<HapiOccupancy>
passingDate
Link copied to clipboard
val passingDate: LocalDate?

Passing date in format YYYY-MM-DD, if available.

passingTime
Link copied to clipboard
val passingTime: LocalTime?

Passing time in format hh:mm:ss, if available.

passingTz
Link copied to clipboard
val passingTz: ZoneOffset

Passing time zone information in the format +/- minutes

routeIdx
Link copied to clipboard
val routeIdx: Int?

Route index of a stop/station. Usually starting from 0 and incrementing by 1. If the route index value jumps, it is most likely that the journey was rerouted.

rtAlighting
Link copied to clipboard
val rtAlighting: Boolean?

True if alighting is allowed by realtime data

rtArrDate
Link copied to clipboard
val rtArrDate: LocalDate?

Realtime arrival date in format YYYY-MM-DD, if available.

rtArrTime
Link copied to clipboard
val rtArrTime: LocalTime?

Realtime arrival time in format hh:mm:ss if available.

rtArrTrack
Link copied to clipboard
val rtArrTrack: String?

Realtime arrival track information, if available.

rtArrTz
Link copied to clipboard
val rtArrTz: ZoneOffset

Realtime arrival time zone information in the format +/- minutes, if available.

rtBoarding
Link copied to clipboard
val rtBoarding: Boolean?

True if boarding is allowed by realtime data

rtDepDate
Link copied to clipboard
val rtDepDate: LocalDate?

Realtime departure date in format YYYY-MM-DD, if available.

rtDepTime
Link copied to clipboard
val rtDepTime: LocalTime?

Realtime departure time in format hh:mm:ss if available.

rtDepTrack
Link copied to clipboard
val rtDepTrack: String?

Realtime departure track information, if available.

rtDepTz
Link copied to clipboard
val rtDepTz: ZoneOffset

Realtime departure time zone information in the format +/- minutes, if available.

rtPassingDate
Link copied to clipboard
val rtPassingDate: LocalDate?

Realtime passing date in format YYYY-MM-DD, if available.

rtPassingTime
Link copied to clipboard
val rtPassingTime: LocalTime?

Realtime passing time in format hh:mm:ss, if available.

rtPassingTz
Link copied to clipboard
val rtPassingTz: ZoneOffset

Realtime passing time zone information in the format +/- minutes, if available.

scheduledArrTimeChanged
Link copied to clipboard
val scheduledArrTimeChanged: Boolean = false

Scheduled arrival time changed.

scheduledDepTimeChanged
Link copied to clipboard
val scheduledDepTimeChanged: Boolean = false

Scheduled departure time changed.