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

Package-level declarations

Types

Name Summary
Coordinate data class Coordinate(val lat: Double, val lng: Double)
Geofence data class Geofence(val id: String, val type: String, val trigger: String, val center: Coordinate, val radius: Double, val messageType: String, val messageTitle: String, val messageBody: String)
GetOffAlertCache object GetOffAlertCache
GroupVisibility enum GroupVisibility : Enum<GroupVisibility>
LocalCost @Value.Immutable
@Gson.TypeAdapters
abstract class LocalCost : Parcelable
LocalCostAccuracy enum LocalCostAccuracy : Enum<LocalCostAccuracy>
MessageType enum MessageType : Enum<MessageType>
ModeInfo class ModeInfo : Parcelable
Provider @Gson.TypeAdapters
@Value.Immutable
abstract class Provider : Parcelable
PurchasedTicket data class PurchasedTicket(val id: String? = null, val status: String? = null, val ticketURL: String? = null)
RealTimeVehicle open class RealTimeVehicle : Parcelable
RemoteIcon annotation class RemoteIcon
RoadTag enum RoadTag : Enum<RoadTag>
RoutingResponse class RoutingResponse
SegmentActionTemplates object SegmentActionTemplates
SegmentJsonKeys object SegmentJsonKeys
SegmentNotesTemplates object SegmentNotesTemplates
SegmentType enum SegmentType : Enum<SegmentType>
ServiceColor class ServiceColor : Parcelable
Shape data class Shape(var id: Long = 0, var isTravelled: Boolean = false, var stops: List<ServiceStop>? = null, var serviceColor: ServiceColor, var encodedWaypoints: String) : Parcelable
Source @Gson.TypeAdapters
@Value.Immutable
abstract class Source : Parcelable
Templates object Templates
Ticket data class Ticket(val cost: Double = 0.0, val exchange: Double = 0.0, val fareID: String? = null, val name: String, val price: Double = 0.0, val purchasedTickets: List<PurchasedTicket>? = null, val value: Long)
Trigger enum Trigger : Enum<Trigger>
Trip class Trip : ITimeRange
A Trip will mainly hold a list of TripSegments which denotes how to go from Trip.getFrom to Trip.getTo.
TripComparators object TripComparators
TripGroup class TripGroup
Represents a list of Trips. A list of Trips comprises of a display trip (aka representative trip) and alternative trips. A display trip can be accessed via .getDisplayTrip while alternative trips can be retrieved via .getTrips minus .getDisplayTrip. That's because .getTrips returns a list of Trips including alternative trips and display trip.
TripGroupComparators object TripGroupComparators
TripKitMapTiles data class TripKitMapTiles(val name: String, val urlTemplates: List<String>, val sources: List<Source>) : Parcelable
TripSegment class TripSegment : IRealTimeElement, ITimeRange
To go from A to B, sometimes we have to travel X, Y, Z locations between A and B. That means, we travel A to X, then X to Y, then Y to Z, then Z to B which is the destination. To show how to travel from A to X, we use TripSegment. So, in this case, a trip from A to B comprises 6 segments:
TripSegments object TripSegments
TurnByTurn enum TurnByTurn : Enum<TurnByTurn>
VehicleComponent @Value.Immutable
@Gson.TypeAdapters
abstract class VehicleComponent
VehicleDrawables object VehicleDrawables
VehicleMode enum VehicleMode : Enum<VehicleMode>
As of v11, this denotes local transport icons.
Visibilities object Visibilities

Properties

Name Summary
actionAlert val TripSegment.actionAlert: RealtimeAlert?
bookingHasConfirmation val TripSegment?.bookingHasConfirmation: Boolean
dateTimeZone val Location.dateTimeZone: DateTimeZone
endDateTime val Trip.endDateTime: DateTime
val TripSegment.endDateTime: DateTime
Get an end date-time with time-zone.
endDateTimeCalendar val TripSegment.endDateTimeCalendar: Calendar
endTimeString val Trip.endTimeString: String
noActionAlerts val TripSegment.noActionAlerts: List<RealtimeAlert>?
queryDateTime val Trip.queryDateTime: DateTime
Gets a query date-time with time-zone based on from location
SimilarLocationDegreeDifference const val SimilarLocationDegreeDifference: Double = 2.5E-5
startDateTime val Trip.startDateTime: DateTime
val TripSegment.startDateTime: DateTime
Gets a start date-time with time-zone.
startDateTimeCalendar val TripSegment.startDateTimeCalendar: Calendar
startTimeString val Trip.startTimeString: String
TIME_FORMATTER val TIME_FORMATTER: DateTimeFormatter
timetableEndDateTime val TripSegment.timetableEndDateTime: DateTime
timetableStartDateTime val TripSegment.timetableStartDateTime: DateTime

Functions

Name Summary
constructPlainText fun Trip.constructPlainText(context: Context): String
containsAnyMode fun TripGroup.containsAnyMode(modeIds: List<String>): Boolean
containsMode fun TripGroup.containsMode(modeId: String): Boolean
from fun String?.from(): SegmentType?
getBookingSegment fun Trip.getBookingSegment(): TripSegment?
getMainTripSegment fun Trip.getMainTripSegment(): TripSegment?
getModeIds fun Trip.getModeIds(): List<String>
getRoadSafetyColor fun RoadTag.getRoadSafetyColor(): Int
getRoadSafetyColorPair fun RoadTag.getRoadSafetyColorPair(): Pair<Int, Boolean>
getRoadSafetyIndex fun RoadTag.getRoadSafetyIndex(): Int
getRoadTagLabel fun RoadTag.getRoadTagLabel(): String
getSummarySegments fun Trip.getSummarySegments(): List<TripSegment>
Gets a list of TripSegments visible on the summary area of a Trip.
getTextColor fun RoadTag.getTextColor(): Int
getTrip fun TripGroup.getTrip(tripId: Long): Trip?
getTripSegment fun Trip.getTripSegment(segmentId: Long): TripSegment?
hasWalkOnly fun Trip.hasWalkOnly(): Boolean
isNear fun Location.isNear(location: Location): Boolean
parseRoadTag fun String.parseRoadTag(): RoadTag
toInt fun ServiceColor.toInt(alpha: Int): Int
toSeconds fun DateTime.toSeconds(): Long