HapiOriginDest

data class HapiOriginDest(name: String, type: HapiLocationType, id: String?, extId: String?, lon: Double?, lat: Double?, routeIdx: Int?, prognosisType: HafasPrognosisType?, time: LocalTime, date: LocalDate, tz: ZoneOffset, scheduledTimeChanged: Boolean, track: String?, rtTime: LocalTime?, rtDate: LocalDate?, rtTz: ZoneOffset, rtTrack: String?, hasMainMast: Boolean?, mainMastId: String?, mainMastExtId: String?, alighting: Boolean?, boarding: Boolean?, rtAlighting: Boolean?, rtBoarding: Boolean?, cancelled: Boolean, cancelledDeparture: Boolean, cancelledArrival: Boolean, additional: Boolean, isBorderStop: Boolean, entry: Boolean?, mcp: Boolean, Notes: List<HapiNote>, mcpData: List<HapiPair>, Message: List<HapiMessage>, altId: List<String>, mainMastAltId: List<String>, Occupancy: List<HapiOccupancy>)

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

date
Link copied to clipboard
val date: LocalDate

Date in format YYYY-MM-DD.

entry
Link copied to clipboard
val entry: Boolean?

True, if the stop is an entry point.

extId
Link copied to clipboard
val extId: String?

External ID of this stop

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?

ID of this stop

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.

lon
Link copied to clipboard
val lon: Double?

The WGS84 longitude of the geographical position.

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.

mcp
Link copied to clipboard
val mcp: Boolean = false

True if this stop is a mode change point, e.g. car sharing station, charging station etc.

mcpData
Link copied to clipboard
val mcpData: List<HapiPair>
Message
Link copied to clipboard
val Message: List<HapiMessage>
name
Link copied to clipboard
val name: String

Contains the name of the location.

Notes
Link copied to clipboard
val Notes: List<HapiNote>
Occupancy
Link copied to clipboard
val Occupancy: List<HapiOccupancy>
prognosisType
Link copied to clipboard
val prognosisType: HafasPrognosisType? = null

Prognosis type of date and time.

routeIdx
Link copied to clipboard
val routeIdx: Int?

Route index of a stop/station. Can be used as a reference of the stop/station in a journeyDetail response.

rtAlighting
Link copied to clipboard
val rtAlighting: Boolean?

True if alighting is allowed by realtime data

rtBoarding
Link copied to clipboard
val rtBoarding: Boolean?

True if boarding is allowed by realtime data

rtDate
Link copied to clipboard
val rtDate: LocalDate?

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

rtTime
Link copied to clipboard
val rtTime: LocalTime?

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

rtTrack
Link copied to clipboard
val rtTrack: String?

Realtime track information, if available.

rtTz
Link copied to clipboard
val rtTz: ZoneOffset

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

scheduledTimeChanged
Link copied to clipboard
val scheduledTimeChanged: Boolean = false

Scheduled time changed.

time
Link copied to clipboard
val time: LocalTime

Time in format hh:mm:ss.

track
Link copied to clipboard
val track: String?

Track information, if available.

type
Link copied to clipboard
val type: HapiLocationType

The attribute type specifies the type of location. Valid values are ST (stop/station), ADR (address), POI (point of interest), CRD (coordinate), MCP (mode change point) or HL (hailing point).

tz
Link copied to clipboard
val tz: ZoneOffset

Time zone information in the format +/- minutes