Skip to content

Matching Scoring ​

Weights ​

An engineering baseline, not a business or regulatory rule.

FactorWeight
Route compatibility35
Pickup compatibility20
Dropoff compatibility20
Time compatibility15
Seats10
Total100

Not hard-coded ​

Weights are configuration, not constants:

json
{
  "routeWeight": 35,
  "pickupWeight": 20,
  "dropoffWeight": 20,
  "timeWeight": 15,
  "seatWeight": 10
}

They are tunable during the pilot without a code change, and validated against real pilot data rather than assumed correct.

Detour thresholds ​

Detour limits are policy, not scoring. They are expressed in the active policy version rather than as weights:

json
{
  "matching": {
    "maxDetourMeters": null,
    "maxDetourSeconds": null
  }
}

A null value means the threshold must be supplied by an approved policy — it does not mean unlimited.

The distinction matters: weights determine the order compatible options appear in, which is a product judgement. Detour limits determine what is permitted, which is a regulatory judgement. The second must never be adjusted by tuning the first.

KHAWI — same route, go together.