EfaTrip

data class EfaTrip(distance: Int, duration: Duration, interchange: Int, desc: Boolean, optValue: Int?, legs: List<EfaLeg>, itdFare: EfaTrip.Fare)

Describes the json structure encoding trips from the XML_TRIP_REQUEST2 endpoint. Appears at $.trips[]

Constructors

EfaTrip
Link copied to clipboard
fun EfaTrip(distance: Int, duration: Duration, interchange: Int, desc: Boolean, optValue: Int?, legs: List<EfaLeg>, itdFare: EfaTrip.Fare)

Types

Fare
Link copied to clipboard
data class Fare(fares: List<EfaFare>?, tickets: List<EfaTicket>?, tariffZones: List<EfaTariffZone>?, specialTickets: List<EfaTicket>?)

Describes the json structure encoding trip fare information. Appears at $.trips[].itdFare

Properties

desc
Link copied to clipboard
val desc: Boolean

TODO: Purpose?

distance
Link copied to clipboard
val distance: Int

The distance covered by this trip

duration
Link copied to clipboard
val duration: Duration

The duration of this trip

interchange
Link copied to clipboard
val interchange: Int

The number of changes on this trip

itdFare
Link copied to clipboard
val itdFare: EfaTrip.Fare

The fare information relevant to this trip

legs
Link copied to clipboard
val legs: List<EfaLeg>

The legs of this trip

optValue
Link copied to clipboard
val optValue: Int?

TODO: Purpose?