TKTripClassifier

public protocol TKTripClassifier

A trip classifier is used to classify TripGroup instances within the same TripRequest.

Classifications should be string constants.

For an example see TKMetricClassifier

  • Called before starting a classifiction of multiple trip groups.

    Declaration

    Swift

    func prepareForClassification(of tripGroups: Set<TripGroup>)

    Parameters

    groups

    The set of trip groups that will be classified.

  • Declaration

    Swift

    func classification(of group: TripGroup) -> String?

    Parameters

    group

    The classifiction of that particular trip group.