Skip to content

@grabm/abm / Function: coordinateJointOutings() ​

ts
import { coordinateJointOutings } from '@grabm/abm'

Usage guide · Package exports

ts
function coordinateJointOutings(
   stops, 
   choose, 
   canPlace, 
   signal?
): JointOutingLink[];

Joint choice uses the existing travel-choice policy, not a passenger target. Only existing flexible requests are joined. Full dwell and all occupied intervals must fit; a rejected group leaves both independent plans intact.

Parameters ​

stops ​

readonly JointOutingStop[]

choose ​

(members, destination, start, groupId) => JointOutingTravel | null

canPlace ​

(member, link) => boolean

signal? ​

AbortSignal

Returns ​

JointOutingLink[]

Documentation for the grABM library.