SkedGo Logo TripKit SDK for Android
  • Getting Started
  • Guide
    • TripKit Map Fragment
    • Location Search
    • Trip Results
    • Service & Stop Detail
    • Routes for region
    • Get off alerts
    • Viewcontroller
  • SDK Reference
  • API
  • Developer
    • Docs
    • API
    • iOS
    • Android
    • React
  • SkedGo
  • Log in
  • Sign up
  • Getting Started
  • Guide
    • TripKit Map Fragment
    • Location Search
    • Trip Results
    • Service & Stop Detail
    • Routes for region
    • Get off alerts
    • Viewcontroller
  • SDK Reference
  • API
  • Docs
  • API
  • iOS
  • Android
  • React
  • SkedGo
  • Log in
  • Sign up
  • TripGroupComparators
  • Properties
  • Functions

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

TripGroupComparators

\ object TripGroupComparators

Properties

Name Summary
ARRIVAL_COMPARATOR_CHAIN val ARRIVAL_COMPARATOR_CHAIN: Comparator<TripGroup>
To sort routes by leave-after query.
DEPARTURE_COMPARATOR_CHAIN val DEPARTURE_COMPARATOR_CHAIN: Comparator<TripGroup>
To sort routes by arrive-by query.
DESC_VISIBILITY_COMPARATOR val DESC_VISIBILITY_COMPARATOR: Comparator<TripGroup>
DISPLAY_TRIP_TRANSFORMER val DISPLAY_TRIP_TRANSFORMER: Transformer<TripGroup, Trip>
DURATION_COMPARATOR val DURATION_COMPARATOR: Comparator<TripGroup>
END_TIME_COMPARATOR val END_TIME_COMPARATOR: Comparator<TripGroup>
MONEY_COST_COMPARATOR val MONEY_COST_COMPARATOR: Comparator<TripGroup>
START_TIME_COMPARATOR val START_TIME_COMPARATOR: Comparator<TripGroup>
WEIGHTED_SCORE_COMPARATOR val WEIGHTED_SCORE_COMPARATOR: Comparator<TripGroup>

Functions

Name Summary
createDurationComparatorChain fun createDurationComparatorChain(willArriveBy: Boolean): Comparator<TripGroup>
createPreferredComparatorChain fun createPreferredComparatorChain(willArriveBy: Boolean): Comparator<TripGroup>
createPriceComparatorChain fun createPriceComparatorChain(willArriveBy: Boolean): Comparator<TripGroup>
TripKit SDK for Android
  • Pricing
  • Report issue
  • Email support