Package de.jlnstrk.transit.api.hapi.response

Types

HapiArrivalBoard
Link copied to clipboard
data class HapiArrivalBoard(Arrival: List<HapiArrival>, Message: List<HapiMessage>, stopid: String, stopExtId: String) : HapiResponse

The arrival board lists arrivals at a specific stop/station or group of stop/stations.

HapiDataInfo
Link copied to clipboard
class HapiDataInfo(Operator: List<HapiOperator>, Product: List<HapiProduct>, ProductCategory: List<HapiProductCategory>, begin: LocalDate, end: LocalDate) : HapiResponse

Contains information about master data.

HapiDepartureBoard
Link copied to clipboard
data class HapiDepartureBoard(Departure: List<HapiDeparture>, Message: List<HapiMessage>, stopid: String, stopExtId: String) : HapiResponse

The departure board lists departures at a specific stop/station or group of stop/stations.

HapiHimMessages
Link copied to clipboard
class HapiHimMessages(Message: List<HapiMessage>) : HapiResponse

Contains notes to be displayed for this trip.

HapiJourneyDetail
Link copied to clipboard
class HapiJourneyDetail(cancelled: Boolean, partCancelled: Boolean, reachable: Boolean, redirected: Boolean, Stops: List<HapiStop>, Names: List<HapiName>, Directions: List<HapiDirection>, Notes: List<HapiNote>, Messages: List<HapiMessage>, JourneyStatus: HapiJourneyStatus?, Polyline: HapiPolyline?, PolylineGroup: HapiPolylineGroup?, ServiceDays: List<HapiServiceDays>, lastPos: HapiCoord?, lastPosReported: String?, lastPassRouteIdx: Int?, lastPassStopRef: Int?, rtLastPassRouteIdx: Int?, rtLastPassStopRef: Int?) : HapiResponse

The journey details contain a list of stops/stations and notes. They also contain the journeys names and types.

HapiJourneyDetailGroupList
Link copied to clipboard
class HapiJourneyDetailGroupList(JourneyDetailGroup: List<HapiJourneyDetailGroup>) : HapiResponse

A list of grouped detailed journeys.

HapiJourneyDetailList
Link copied to clipboard
class HapiJourneyDetailList(JourneyDetail: List<HapiJourneyDetail>) : HapiResponse

A list of detailed journeys.

HapiJourneyList
Link copied to clipboard
class HapiJourneyList(Journey: List<HapiJourney>) : HapiResponse

A list of journeys.

HapiJourneyValidation
Link copied to clipboard
class HapiJourneyValidation(item: List<HapiBooleanPair>) : HapiResponse

Result of a JorneyValidation request.

HapiLocationDetails
Link copied to clipboard
data class HapiLocationDetails(stopLocationOrCoordLocation: HapiCoordLocation) : HapiResponse

The location contains details for a stop/station or POI.

HapiLocationList
Link copied to clipboard
class HapiLocationList(stopLocationOrCoordLocation: List<HapiStopOrCoordLocation>) : HapiResponse

The location list contains either named coordinates or stops/stations with name and id as a result of a location request. The data of every list entry can be used for further trip or departureBoard requests.

HapiTimetableInfoList
Link copied to clipboard
data class HapiTimetableInfoList(TimetableInfo: List<HapiTimetableInfo>, begin: LocalDate, end: LocalDate) : HapiResponse

The timetable info list contains entries for each pool of the connected HAFAS server. Each entry has a date and time attribute representing the point in time the pool was generated. The attribute ident identifies that specific pool. The list itself carries the begin and end date of the planning period as attributes.

HapiTripList
Link copied to clipboard
data class HapiTripList(scrB: String?, scrF: String?, scrReturnB: String?, scrReturnF: String?, Trip: List<HapiTrip>, Pricing: List<HapiPricing>) : HapiResponse

The trip list contains all found trips of that trip request. If a major error occurred during the trip request, then the attributes errorCode and errorText are filled and no Trip is available.