/tripkit/CommonCoreLegacy/com.skedgo.tripkit.routing/Trip

Trip

\ class Trip : ITimeRange

A Trip will mainly hold a list of TripSegments which denotes how to go from Trip.getFrom to Trip.getTo.

Main use-cases:

Constructors

Trip constructor()

Types

Name Summary
Companion object Companion

Properties

Name Summary
arrive @SerializedName(value = "arrive")
var arrive: String?
availabilityInfo var availabilityInfo: String?
caloriesCost @SerializedName(value = "caloriesCost")
var caloriesCost: Float
carbonCost @SerializedName(value = "carbonCost")
var carbonCost: Float
currencySymbol @SerializedName(value = "currencySymbol")
var currencySymbol: String?
depart @SerializedName(value = "depart")
var depart: String?
endDateTime val Trip.endDateTime: DateTime
Get an end date-time with time-zone.
endTimeInSecs open override var endTimeInSecs: Long
endTimeString val Trip.endTimeString: String
from val from: Location?
group @Transient
var group: TripGroup?
hassleCost @SerializedName(value = "hassleCost")
var hassleCost: Float
hideExactTimes @SerializedName(value = "hideExactTimes")
var hideExactTimes: Boolean
id var id: String
isFavourite var isFavourite: Boolean
logURL @SerializedName(value = "logURL")
var logURL: String?
mainSegmentHashCode @SerializedName(value = "mainSegmentHashCode")
var mainSegmentHashCode: Long
mAvailability @SerializedName(value = "availability")
var mAvailability: String?
moneyCost @SerializedName(value = "moneyCost")
var moneyCost: Float
moneyUsdCost @SerializedName(value = "moneyUSDCost")
var moneyUsdCost: Float
plannedURL @SerializedName(value = "plannedURL")
var plannedURL: String?
progressURL @SerializedName(value = "progressURL")
var progressURL: String?
queryDateTime val Trip.queryDateTime: DateTime
Gets a query date-time with time-zone based on from location
queryIsLeaveAfter @SerializedName(value = "queryIsLeaveAfter")
var queryIsLeaveAfter: Boolean
queryTime @SerializedName(value = "queryTime")
var queryTime: Long
quickBookingSegment val quickBookingSegment: TripSegment?
rawSegmentList @SerializedName(value = "segments")
var rawSegmentList: ArrayList<JsonObject>?
saveURL @SerializedName(value = "saveURL")
var saveURL: String?
segmentList var segmentList: MutableList<TripSegment>
shareURL @SerializedName(value = "shareURL")
var shareURL: String?
startDateTime val Trip.startDateTime: DateTime
Gets a start date-time with time-zone.
startTimeInSecs open override var startTimeInSecs: Long
startTimeString val Trip.startTimeString: String
subscribeURL @SerializedName(value = "subscribeURL")
var subscribeURL: String?
temporaryURL @SerializedName(value = "temporaryURL")
var temporaryURL: String?
to val to: Location?
tripId var tripId: Long
unsubscribeURL @SerializedName(value = "unsubscribeURL")
var unsubscribeURL: String?
updateURL @SerializedName(value = "updateURL")
var updateURL: String?
uuid var uuid: String
weightedScore @SerializedName(value = "weightedScore")
var weightedScore: Float

Functions

Name Summary
constructPlainText fun Trip.constructPlainText(context: Context): String
durationInSeconds fun durationInSeconds(): Long
getAvailability fun getAvailability(): Availability?
getAvailabilityString fun getAvailabilityString(): String?
getBookingSegment fun Trip.getBookingSegment(): TripSegment?
getDisplayCalories fun getDisplayCalories(): String
getDisplayCarbonCost fun getDisplayCarbonCost(): String?
getDisplayCost fun getDisplayCost(localizedFreeText: String): String?
getDisplayCostUsd fun getDisplayCostUsd(): String?
getMainTripSegment fun Trip.getMainTripSegment(): TripSegment?
getModeIds fun Trip.getModeIds(): List<String>
getSummarySegments fun Trip.getSummarySegments(): List<TripSegment>
Gets a list of TripSegments visible on the summary area of a Trip.
getTimeCost fun getTimeCost(): Float
getTripSegment fun Trip.getTripSegment(segmentId: Long): TripSegment?
getTripUuid fun getTripUuid(): String
hasAnyExpensiveTransport fun hasAnyExpensiveTransport(): Boolean
hasAnyPublicTransport fun hasAnyPublicTransport(): Boolean
hasQuickBooking fun hasQuickBooking(): Boolean
hasTransportMode fun hasTransportMode(vararg modes: VehicleMode): Boolean
hasWalkOnly fun Trip.hasWalkOnly(): Boolean
isDepartureTimeFixed fun isDepartureTimeFixed(): Boolean
isMixedModal fun isMixedModal(ignoreWalking: Boolean): Boolean
setAvailability fun setAvailability(availability: Availability)
fun setAvailability(availability: String)