tripkit-android / com.skedgo.tripkit.a2brouting / SelectBestDisplayTrip

SelectBestDisplayTrip

class SelectBestDisplayTrip : Function<TripGroup!,TripGroup!>

Selects display trip which has lowest weighted score.

If we leave after a certain query time, this helps pick the best display trip having start time that is not before the query time. Also, if we arrive by, it makes sure that display trip having end time which is after the query time will not be selected.

Constructors

Name Summary
<init> Selects display trip which has lowest weighted score. SelectBestDisplayTrip()

Functions

Name Summary
apply fun apply(group:TripGroup):TripGroup