mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-01 08:22:41 +00:00
improve TODO explanation in journey value object
This commit is contained in:
@@ -46,6 +46,12 @@ export class Journey extends ValueObject<JourneyProps> {
|
||||
const driverActorTime = passengerDepartureJourneyItem.actorTimes.find(
|
||||
(actorTime: ActorTime) => actorTime.role == Role.DRIVER,
|
||||
) as ActorTime;
|
||||
// TODO : check if the following conditions are even to the ones used in the return
|
||||
// 4 possibilities to be valid :
|
||||
// - 1 : the driver time boundaries are within the passenger time boundaries
|
||||
// - 2 : the max driver time boundary is within the passenger time boundaries
|
||||
// - 3 : the min driver time boundary is within the passenger time boundaries
|
||||
// - 4 : the passenger time boundaries are within the driver time boundaries
|
||||
// return (
|
||||
// // 1
|
||||
// (driverActorTime.firstMinDatetime >=
|
||||
|
||||
Reference in New Issue
Block a user